Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 47.92 kB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1091, allocations: 53.34 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004698/0.1138, allocations: 2.897 MB / 430.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1155, allocations: 0.7711 MB / 431.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.1157, allocations: 4 kB / 431.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.1159, allocations: 51.5 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.1162, allocations: 91.19 kB / 431.3 MB, free: 448 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.1166, allocations: 107.7 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1952/0.3118, allocations: 364.3 kB / 431.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.3121, allocations: 81.92 kB / 431.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.3124, allocations: 143.3 kB / 432 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.3127, allocations: 153.2 kB / 432.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.941e-05/0.3127, allocations: 31.22 kB / 432.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.3128, allocations: 30.53 kB / 432.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.497e-05/0.3129, allocations: 71.36 kB / 432.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.3131, allocations: 164.3 kB / 432.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.3136, allocations: 367.8 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3136, allocations: 0 / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3136, allocations: 1.375 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.19e-05/0.3136, allocations: 0 / 432.8 MB, free: 8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001106/0.3147, allocations: 0.6058 MB / 433.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3147, allocations: 9.688 kB / 433.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.3148, allocations: 43.45 kB / 433.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.3152, allocations: 277.4 kB / 433.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.415e-05/0.3153, allocations: 74.47 kB / 433.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.3153, allocations: 33.44 kB / 433.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004557/0.3158, allocations: 306.3 kB / 434.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.3158, allocations: 0 / 434.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.3158, allocations: 12.56 kB / 434.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.3158, allocations: 7.875 kB / 434.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004049/0.3162, allocations: 183.6 kB / 434.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.3182, allocations: 1.129 MB / 435.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.3186, allocations: 149.3 kB / 435.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.3187, allocations: 78.14 kB / 435.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.3187, allocations: 4.531 kB / 435.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.319, allocations: 155 kB / 435.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.319, allocations: 1.625 kB / 435.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001094/0.3201, allocations: 385.4 kB / 436.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.3202, allocations: 106.9 kB / 436.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.3204, allocations: 222 kB / 436.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.3204, allocations: 34.06 kB / 436.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3205, allocations: 190.4 kB / 436.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.292e-05/0.3206, allocations: 67.5 kB / 436.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3207, allocations: 58.38 kB / 436.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.3208, allocations: 336 kB / 437.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.3209, allocations: 65.23 kB / 437.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.3211, allocations: 146 kB / 437.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.3214, allocations: 192.5 kB / 437.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3214, allocations: 1.219 kB / 437.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004637/0.3219, allocations: 273.5 kB / 437.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3219, allocations: 5.875 kB / 437.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3219, allocations: 2.062 kB / 437.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000293/0.3222, allocations: 57.86 kB / 437.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.3224, allocations: 51.03 kB / 438 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.3235, allocations: 1.568 MB / 439.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.3238, allocations: 41.39 kB / 439.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.3238, allocations: 12.8 kB / 439.6 MB, free: 3.793 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.3239, allocations: 148.4 kB / 439.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.324, allocations: 23.73 kB / 439.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.049e-05/0.324, allocations: 27.61 kB / 439.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.324, allocations: 2.906 kB / 439.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.324, allocations: 0 / 439.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.324, allocations: 4.094 kB / 439.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.3243, allocations: 330.8 kB / 440.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3243, allocations: 0.6875 kB / 440.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.3245, allocations: 31.8 kB / 440.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001964/0.3247, allocations: 55.55 kB / 440.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.3247, allocations: 5.609 kB / 440.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008948/0.3256, allocations: 1.423 MB / 441.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3256, allocations: 1.156 kB / 441.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006412/0.3263, allocations: 327.8 kB / 442 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.338e-05/0.3263, allocations: 112.9 kB / 442.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/0.3264, allocations: 5.969 kB / 442.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.3266, allocations: 18.61 kB / 442.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3267, allocations: 29.27 kB / 442.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3267, allocations: 13.45 kB / 442.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.3268, allocations: 160.9 kB / 442.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3268, allocations: 0 / 442.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.3272, allocations: 83.56 kB / 442.4 MB, free: 1.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001088/0.3273, allocations: 110.2 kB / 442.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005229/0.3278, allocations: 275.1 kB / 442.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3278, allocations: 4.906 kB / 442.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002519/0.3281, allocations: 188.1 kB / 442.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.3284, allocations: 33.83 kB / 443 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.3299, allocations: 0.6947 MB / 443.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.3301, allocations: 0.7667 MB / 444.4 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.33e-05/0.3302, allocations: 20.78 kB / 444.5 MB, free: 108 kB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3302, allocations: 3.469 kB / 444.5 MB, free: 108 kB / 350.1 MB Notification: Performance of Templates: time 0.007907/0.3381, allocations: 4.215 MB / 448.7 MB, free: 15.78 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.615149638993898]