Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 95.5 kB / 21.19 MB, free: 3.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001805/0.001805, allocations: 156.5 kB / 24.55 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9211/0.9211, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.729e-05/2.898e-05, allocations: 5.266 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003312/0.003341, allocations: 2.906 MB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.004653, allocations: 0.7593 MB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.004882, allocations: 7.938 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.005085, allocations: 47.5 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002687/0.005354, allocations: 99.06 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.005778, allocations: 107.7 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.006216, allocations: 386.1 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.006438, allocations: 87.66 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004317/0.00687, allocations: 215.5 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.007048, allocations: 111.7 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.066e-05/0.007098, allocations: 28 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.48e-05/0.007143, allocations: 32 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.007202, allocations: 71.73 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.007321, allocations: 119.7 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.007619, allocations: 247.1 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.007624, allocations: 0 / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.007625, allocations: 4 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.007633, allocations: 0 / 278.1 MB, free: 12.21 MB / 266.7 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.0008089/0.008442, allocations: 0.6299 MB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.00848, allocations: 15.98 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.008584, allocations: 60.7 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.008863, allocations: 212.1 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-05/0.008962, allocations: 128 kB / 279.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.042e-05/0.009013, allocations: 32.38 kB / 279.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.009397, allocations: 315 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.009409, allocations: 192 / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.009439, allocations: 20.12 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.00945, allocations: 4 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005662/0.01002, allocations: 119.8 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.01124, allocations: 1.091 MB / 280.7 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.01174, allocations: 135.1 kB / 280.9 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.537e-05/0.01183, allocations: 51.61 kB / 280.9 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.01184, allocations: 4 kB / 280.9 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.01205, allocations: 203.4 kB / 281.1 MB, free: 8.973 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.01206, allocations: 0 / 281.1 MB, free: 8.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006336/0.01269, allocations: 256.7 kB / 281.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.01274, allocations: 110.8 kB / 281.5 MB, free: 8.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.0129, allocations: 254.7 kB / 281.7 MB, free: 8.316 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.01292, allocations: 29.7 kB / 281.7 MB, free: 8.281 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.01303, allocations: 235.1 kB / 282 MB, free: 8.047 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.01308, allocations: 67.39 kB / 282 MB, free: 7.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.267e-05/0.01316, allocations: 63.34 kB / 282.1 MB, free: 7.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.01329, allocations: 0.504 MB / 282.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.948e-05/0.01337, allocations: 39.97 kB / 282.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.01351, allocations: 194 kB / 282.8 MB, free: 7.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.01371, allocations: 170.8 kB / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01371, allocations: 0 / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003196/0.01403, allocations: 243.2 kB / 283.2 MB, free: 6.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.01404, allocations: 11.19 kB / 283.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.01406, allocations: 4 kB / 283.3 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001869/0.01424, allocations: 47.64 kB / 283.3 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.01441, allocations: 47.92 kB / 283.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.01544, allocations: 1.988 MB / 285.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.01557, allocations: 35.77 kB / 285.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.01559, allocations: 12 kB / 285.4 MB, free: 4.398 MB / 266.7 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.0001087/0.0157, allocations: 180.4 kB / 285.6 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/0.01574, allocations: 27.91 kB / 285.6 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.01577, allocations: 30.02 kB / 285.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01577, allocations: 7.922 kB / 285.6 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.01577, allocations: 0 / 285.6 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.01578, allocations: 4 kB / 285.6 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.01598, allocations: 224.5 kB / 285.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.01598, allocations: 0 / 285.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.01609, allocations: 27.98 kB / 285.9 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.0162, allocations: 47.64 kB / 285.9 MB, free: 3.809 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.01622, allocations: 4 kB / 285.9 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008428/0.01706, allocations: 1.748 MB / 287.7 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01706, allocations: 3.938 kB / 287.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000635/0.0177, allocations: 275.8 kB / 287.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.01776, allocations: 39.78 kB / 288 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.01778, allocations: 7.984 kB / 288 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.082e-05/0.01786, allocations: 8 kB / 288 MB, free: 1.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.361e-05/0.01795, allocations: 35.94 kB / 288 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.01796, allocations: 4 kB / 288 MB, free: 1.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.466e-05/0.01805, allocations: 181.4 kB / 288.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01805, allocations: 0 / 288.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003408/0.01839, allocations: 83.88 kB / 288.3 MB, free: 1.285 MB / 266.7 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.0001127/0.01851, allocations: 107.1 kB / 288.4 MB, free: 1.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.01892, allocations: 313 kB / 288.7 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.01892, allocations: 4 kB / 288.7 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.01911, allocations: 234.4 kB / 288.9 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.01935, allocations: 52.22 kB / 289 MB, free: 0.543 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.02056, allocations: 0.5819 MB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.247e-05/0.02061, allocations: 84.31 kB / 289.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.62e-05/0.02069, allocations: 21.94 kB / 289.7 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.586e-05/0.02073, allocations: 24.5 kB / 289.7 MB, free: 15.78 MB / 282.7 MB Notification: Performance of SimCode: time 6.62e-07/0.02073, allocations: 0 / 289.7 MB, free: 15.78 MB / 282.7 MB Notification: Performance of Templates: time 0.006039/0.02677, allocations: 3.04 MB / 292.7 MB, free: 12.78 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.964566709008068]