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.0008844/0.0008844, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001004/0.001004, allocations: 173.9 kB / 24.92 MB, free: 9.18 MB / 18.57 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 0.9299/0.9299, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 0 / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.176e-05/1.321e-05, allocations: 2.312 kB / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002597/0.00261, allocations: 2.873 MB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.003683, allocations: 0.7708 MB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.003797, allocations: 7.938 kB / 277.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.003919, allocations: 47.56 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.004058, allocations: 99.05 kB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.004307, allocations: 103.7 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.004577, allocations: 386.2 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.004711, allocations: 90.27 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.004881, allocations: 211.5 kB / 278 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.005023, allocations: 119.7 kB / 278.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.005059, allocations: 28 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.991e-05/0.005089, allocations: 32 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.613e-05/0.005135, allocations: 71.73 kB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.005216, allocations: 115.7 kB / 278.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.005426, allocations: 247.1 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.005428, allocations: 0 / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.005429, allocations: 4 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.005432, allocations: 0 / 278.6 MB, free: 12.07 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.0005237/0.005956, allocations: 0.513 MB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.729e-05/0.005983, allocations: 8.031 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.423e-05/0.006038, allocations: 44.91 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.006224, allocations: 185.3 kB / 279.4 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.312e-05/0.006307, allocations: 128 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.006337, allocations: 32.38 kB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002336/0.006571, allocations: 302.5 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.006579, allocations: 192 / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.006598, allocations: 20.11 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.006604, allocations: 4 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.006729, allocations: 80.55 kB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008584/0.007588, allocations: 0.8255 MB / 280.8 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.007737, allocations: 103.8 kB / 280.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.007779, allocations: 40.78 kB / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.007793, allocations: 4 kB / 280.9 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.007941, allocations: 188.2 kB / 281.1 MB, free: 9.426 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.007942, allocations: 0 / 281.1 MB, free: 9.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003909/0.008333, allocations: 182.4 kB / 281.3 MB, free: 9.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.008378, allocations: 118.7 kB / 281.4 MB, free: 9.098 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.008485, allocations: 203.7 kB / 281.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.008502, allocations: 29.7 kB / 281.6 MB, free: 8.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.655e-05/0.008568, allocations: 168.5 kB / 281.8 MB, free: 8.684 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.765e-05/0.008606, allocations: 75.36 kB / 281.8 MB, free: 8.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.00867, allocations: 65.52 kB / 281.9 MB, free: 8.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.78e-05/0.008738, allocations: 326.8 kB / 282.2 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.482e-05/0.008773, allocations: 27.98 kB / 282.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.008857, allocations: 156.8 kB / 282.4 MB, free: 7.984 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.009081, allocations: 136.1 kB / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.009083, allocations: 0 / 282.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001714/0.009254, allocations: 180.6 kB / 282.7 MB, free: 7.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.009265, allocations: 8.219 kB / 282.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.00927, allocations: 4 kB / 282.7 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001268/0.009397, allocations: 40.81 kB / 282.8 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.00951, allocations: 47.92 kB / 282.8 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006638/0.01017, allocations: 1.321 MB / 284.1 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.01028, allocations: 35.77 kB / 284.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.01029, allocations: 8 kB / 284.2 MB, free: 6.09 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 8.477e-05/0.01037, allocations: 137.7 kB / 284.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.01039, allocations: 24.06 kB / 284.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.01042, allocations: 21.97 kB / 284.4 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.01042, allocations: 0 / 284.4 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.01043, allocations: 7.984 kB / 284.4 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.01043, allocations: 0 / 284.4 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.01057, allocations: 145.8 kB / 284.5 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01057, allocations: 3.938 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.419e-05/0.01066, allocations: 39.91 kB / 284.5 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.773e-05/0.01075, allocations: 36.83 kB / 284.6 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.01076, allocations: 8 kB / 284.6 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005404/0.0113, allocations: 1.166 MB / 285.8 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.0113, allocations: 3.938 kB / 285.8 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.01152, allocations: 217.6 kB / 286 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.01181, allocations: 27.8 kB / 286 MB, free: 4.129 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.01183, allocations: 4 kB / 286 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.886e-05/0.01189, allocations: 11.98 kB / 286 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.01194, allocations: 35.94 kB / 286.1 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.01195, allocations: 0 / 286.1 MB, free: 4.078 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.01199, allocations: 63.02 kB / 286.1 MB, free: 4.016 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01199, allocations: 4 kB / 286.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001967/0.01218, allocations: 79.86 kB / 286.2 MB, free: 3.934 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 8.041e-05/0.01226, allocations: 84.42 kB / 286.3 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002435/0.01251, allocations: 234.9 kB / 286.5 MB, free: 3.598 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.01251, allocations: 4 kB / 286.5 MB, free: 3.594 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.01263, allocations: 163.4 kB / 286.7 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.01275, allocations: 40.41 kB / 286.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000855/0.01361, allocations: 0.5594 MB / 287.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.487e-05/0.01365, allocations: 88.25 kB / 287.4 MB, free: 2.684 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.403e-05/0.01371, allocations: 13.95 kB / 287.4 MB, free: 2.672 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.509e-05/0.0138, allocations: 95.33 kB / 287.5 MB, free: 2.578 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.0138, allocations: 4 kB / 287.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of Templates: time 0.004683/0.01849, allocations: 3.084 MB / 290.6 MB, free: 15.55 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.493767371866852]