Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001958/0.001958, allocations: 92.33 kB / 21.73 MB, free: 2.68 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.002233/0.002233, allocations: 164.4 kB / 25.02 MB, free: 9.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.719e-06/4.719e-06, allocations: 0 / 250.4 MB, free: 3.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.314e-05/7.786e-05, allocations: 6.25 kB / 250.4 MB, free: 3.938 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.008563/0.008641, allocations: 2.855 MB / 253.2 MB, free: 1.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.01142, allocations: 0.7719 MB / 254 MB, free: 288 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/0.01168, allocations: 4 kB / 254 MB, free: 284 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.01199, allocations: 59.44 kB / 254.1 MB, free: 224 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003841/0.01237, allocations: 103 kB / 254.2 MB, free: 120 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006124/0.01299, allocations: 111.7 kB / 254.3 MB, free: 8 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008512/0.01384, allocations: 442 kB / 254.7 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.01418, allocations: 92.38 kB / 254.8 MB, free: 15.47 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005363/0.01471, allocations: 239.5 kB / 255 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.01506, allocations: 127.6 kB / 255.1 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.828e-05/0.01516, allocations: 36 kB / 255.2 MB, free: 15.08 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.01526, allocations: 36 kB / 255.2 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.01539, allocations: 75.72 kB / 255.3 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.01569, allocations: 135.7 kB / 255.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00087/0.01656, allocations: 434.6 kB / 255.8 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.01656, allocations: 0 / 255.8 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.01656, allocations: 4 kB / 255.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.01657, allocations: 0 / 255.9 MB, free: 14.41 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00173/0.0183, allocations: 0.5753 MB / 256.4 MB, free: 13.8 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.01835, allocations: 15.98 kB / 256.4 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.01857, allocations: 68.7 kB / 256.5 MB, free: 13.72 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006924/0.01926, allocations: 226.8 kB / 256.7 MB, free: 13.47 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/0.01946, allocations: 132 kB / 256.9 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.01956, allocations: 32.36 kB / 256.9 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.02065, allocations: 386.7 kB / 257.3 MB, free: 12.88 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.02068, allocations: 4.172 kB / 257.3 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/0.02075, allocations: 20.12 kB / 257.3 MB, free: 12.85 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.02076, allocations: 11.94 kB / 257.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007845/0.02155, allocations: 222.5 kB / 257.5 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.02487, allocations: 1.191 MB / 258.7 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/0.02547, allocations: 170.5 kB / 258.9 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003106/0.02578, allocations: 80.83 kB / 259 MB, free: 11.1 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.02581, allocations: 4 kB / 259 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005399/0.02635, allocations: 213.2 kB / 259.2 MB, free: 10.85 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.963e-06/0.02635, allocations: 0 / 259.2 MB, free: 10.85 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001975/0.02833, allocations: 326.5 kB / 259.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.02847, allocations: 106.8 kB / 259.6 MB, free: 10.39 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005004/0.02897, allocations: 245.8 kB / 259.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.02902, allocations: 29.7 kB / 259.9 MB, free: 10.11 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.02932, allocations: 212.2 kB / 260.1 MB, free: 9.898 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.02945, allocations: 79.36 kB / 260.1 MB, free: 9.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.02965, allocations: 62.03 kB / 260.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00031/0.02996, allocations: 342.8 kB / 260.5 MB, free: 9.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.03026, allocations: 76.61 kB / 260.6 MB, free: 9.336 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005215/0.03078, allocations: 228.9 kB / 260.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007406/0.03152, allocations: 235.5 kB / 261.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.03152, allocations: 0 / 261.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001366/0.03289, allocations: 355.8 kB / 261.4 MB, free: 8.438 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.03293, allocations: 14.64 kB / 261.4 MB, free: 8.426 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.03294, allocations: 0 / 261.4 MB, free: 8.426 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004585/0.0334, allocations: 64.91 kB / 261.5 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.03388, allocations: 67.84 kB / 261.6 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/0.03649, allocations: 1.434 MB / 263 MB, free: 6.762 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004001/0.03689, allocations: 47.92 kB / 263 MB, free: 6.715 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.189e-05/0.03693, allocations: 19.92 kB / 263.1 MB, free: 6.695 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0002754/0.03721, allocations: 145.8 kB / 263.2 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.593e-05/0.03729, allocations: 31.86 kB / 263.2 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.03736, allocations: 34.2 kB / 263.3 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.03736, allocations: 0 / 263.3 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.03737, allocations: 4 kB / 263.3 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.03737, allocations: 3.984 kB / 263.3 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.03773, allocations: 233 kB / 263.5 MB, free: 6.203 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.03773, allocations: 8 kB / 263.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.03795, allocations: 39.91 kB / 263.6 MB, free: 6.156 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002311/0.03818, allocations: 52.81 kB / 263.6 MB, free: 6.102 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.0382, allocations: 0 / 263.6 MB, free: 6.102 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.03974, allocations: 1.299 MB / 264.9 MB, free: 4.703 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.03974, allocations: 0 / 264.9 MB, free: 4.703 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/0.04059, allocations: 349.5 kB / 265.2 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.0407, allocations: 39.77 kB / 265.3 MB, free: 4.301 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.04074, allocations: 12.17 kB / 265.3 MB, free: 4.289 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.04092, allocations: 23.98 kB / 265.3 MB, free: 4.266 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.04105, allocations: 27.89 kB / 265.3 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.04108, allocations: 11.98 kB / 265.4 MB, free: 4.227 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002186/0.0413, allocations: 165.2 kB / 265.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0413, allocations: 4 kB / 265.5 MB, free: 4.062 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004726/0.04177, allocations: 91.78 kB / 265.6 MB, free: 3.973 MB / 250.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001759/0.04195, allocations: 103.2 kB / 265.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007886/0.04274, allocations: 309.4 kB / 266 MB, free: 3.551 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.04274, allocations: 0 / 266 MB, free: 3.551 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000381/0.04312, allocations: 190.5 kB / 266.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.04341, allocations: 41.09 kB / 266.2 MB, free: 3.312 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.0452, allocations: 0.6271 MB / 266.9 MB, free: 2.656 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.0454, allocations: 168.8 kB / 267 MB, free: 2.477 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.04552, allocations: 26.28 kB / 267.1 MB, free: 2.445 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.506e-05/0.04559, allocations: 24.5 kB / 267.1 MB, free: 2.418 MB / 250.7 MB Notification: Performance of SimCode: time 8.42e-07/0.04559, allocations: 0 / 267.1 MB, free: 2.418 MB / 250.7 MB Notification: Performance of Templates: time 0.008671/0.05426, allocations: 2.909 MB / 270 MB, free: 15.54 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.890589138958603]