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.001418/0.001418, allocations: 84.95 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001497/0.001497, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.49/1.49, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.453e-05/2.622e-05, allocations: 3.688 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003982/0.004009, allocations: 2.706 MB / 327.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.005726, allocations: 0.738 MB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.005872, allocations: 8.469 kB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.006056, allocations: 49.27 kB / 328.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.006268, allocations: 97.66 kB / 328.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.006645, allocations: 103.8 kB / 328.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004721/0.007117, allocations: 388.9 kB / 329.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.007321, allocations: 79.25 kB / 329.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.007616, allocations: 213.3 kB / 329.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.007846, allocations: 114.8 kB / 329.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.007902, allocations: 30 kB / 329.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.251e-05/0.007964, allocations: 30.69 kB / 329.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.662e-05/0.008061, allocations: 70.27 kB / 329.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.008222, allocations: 118.4 kB / 329.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005187/0.00874, allocations: 371.8 kB / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.008745, allocations: 1.281 kB / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.008746, allocations: 0 / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.008753, allocations: 0 / 330.1 MB, free: 13.36 MB / 302.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.001134/0.009887, allocations: 0.5373 MB / 330.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.009931, allocations: 16.97 kB / 330.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.607e-05/0.01003, allocations: 39.14 kB / 330.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.01044, allocations: 207 kB / 330.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.01057, allocations: 126.8 kB / 331 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.01062, allocations: 26.53 kB / 331 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005464/0.01116, allocations: 351.4 kB / 331.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.01118, allocations: 192 / 331.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/0.01122, allocations: 19.47 kB / 331.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.01123, allocations: 10.81 kB / 331.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003612/0.01159, allocations: 189.5 kB / 331.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.01341, allocations: 0.9716 MB / 332.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000361/0.01377, allocations: 146.8 kB / 332.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.01393, allocations: 75.22 kB / 332.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.01396, allocations: 2.156 kB / 332.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003307/0.01429, allocations: 215.7 kB / 333 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.352e-06/0.01429, allocations: 1.219 kB / 333 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001079/0.01537, allocations: 310.2 kB / 333.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.01545, allocations: 106.2 kB / 333.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.01566, allocations: 206.5 kB / 333.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.01569, allocations: 30.92 kB / 333.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.01583, allocations: 183.9 kB / 333.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.148e-05/0.0159, allocations: 72.75 kB / 333.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.01601, allocations: 62.56 kB / 334 MB, free: 10.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.01618, allocations: 335.6 kB / 334.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.01632, allocations: 62.95 kB / 334.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.01657, allocations: 193.6 kB / 334.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.01687, allocations: 190.9 kB / 334.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.01688, allocations: 5.109 kB / 334.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004831/0.01736, allocations: 275.3 kB / 335 MB, free: 9.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.01737, allocations: 5.969 kB / 335 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01738, allocations: 2.062 kB / 335 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002545/0.01763, allocations: 62.91 kB / 335.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.01784, allocations: 49.11 kB / 335.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.01944, allocations: 1.442 MB / 336.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.01971, allocations: 34.77 kB / 336.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.01973, allocations: 12.31 kB / 336.6 MB, free: 7.922 MB / 302.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.0001752/0.01991, allocations: 144.2 kB / 336.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.01994, allocations: 18.97 kB / 336.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.216e-05/0.02, allocations: 33.64 kB / 336.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.02, allocations: 11.12 kB / 336.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.02, allocations: 0 / 336.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.02001, allocations: 0 / 336.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.0203, allocations: 213.7 kB / 337 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.0203, allocations: 1.312 kB / 337 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.02047, allocations: 34.11 kB / 337.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/0.02069, allocations: 56.16 kB / 337.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.02071, allocations: 9.25 kB / 337.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.02198, allocations: 1.288 MB / 338.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.02198, allocations: 0 / 338.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006749/0.02265, allocations: 337.7 kB / 338.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.454e-05/0.02274, allocations: 35.75 kB / 338.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.02277, allocations: 6.625 kB / 338.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.02294, allocations: 13.48 kB / 338.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.02303, allocations: 30.3 kB / 338.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.02304, allocations: 8.922 kB / 338.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001391/0.02318, allocations: 147.2 kB / 339 MB, free: 5.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02318, allocations: 0 / 339 MB, free: 5.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000373/0.02355, allocations: 79.44 kB / 339 MB, free: 5.816 MB / 302.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.0001302/0.02368, allocations: 110.5 kB / 339.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.02423, allocations: 280.8 kB / 339.4 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02423, allocations: 0 / 339.4 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.02454, allocations: 193.1 kB / 339.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.02482, allocations: 44.89 kB / 339.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.02641, allocations: 0.5898 MB / 340.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.02656, allocations: 154.1 kB / 340.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.059e-05/0.02665, allocations: 24.81 kB / 340.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.02671, allocations: 23.22 kB / 340.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.02671, allocations: 1.188 kB / 340.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of Templates: time 0.007729/0.03444, allocations: 2.88 MB / 343.3 MB, free: 2.082 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.6340927965939045]