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.001928/0.001928, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002015/0.002015, allocations: 161.9 kB / 25.03 MB, free: 8.926 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.439/1.439, allocations: 158.6 MB / 186.8 MB, free: 2.914 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 2.174e-06/2.174e-06, allocations: 0 / 250.4 MB, free: 7.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.262e-05/3.48e-05, allocations: 2.312 kB / 250.4 MB, free: 7.699 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.0052/0.005234, allocations: 3.043 MB / 253.4 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.007093, allocations: 0.7797 MB / 254.2 MB, free: 3.848 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.007282, allocations: 11.94 kB / 254.2 MB, free: 3.836 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.007504, allocations: 51.44 kB / 254.3 MB, free: 3.785 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.007755, allocations: 111 kB / 254.4 MB, free: 3.676 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004557/0.008211, allocations: 115.7 kB / 254.5 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006319/0.008843, allocations: 429.9 kB / 254.9 MB, free: 3.141 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.009115, allocations: 100.4 kB / 255 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004003/0.009515, allocations: 243.5 kB / 255.2 MB, free: 2.797 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.009757, allocations: 123.6 kB / 255.4 MB, free: 2.676 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.418e-05/0.009831, allocations: 36 kB / 255.4 MB, free: 2.641 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.653e-05/0.009907, allocations: 36 kB / 255.4 MB, free: 2.605 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.01001, allocations: 79.72 kB / 255.5 MB, free: 2.527 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.0102, allocations: 139.7 kB / 255.6 MB, free: 2.391 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.01086, allocations: 434.6 kB / 256.1 MB, free: 1.965 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.01087, allocations: 0 / 256.1 MB, free: 1.965 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.01087, allocations: 0 / 256.1 MB, free: 1.965 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.01088, allocations: 0 / 256.1 MB, free: 1.965 MB / 234.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.001537/0.01241, allocations: 0.6944 MB / 256.8 MB, free: 1.23 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.01247, allocations: 19.98 kB / 256.8 MB, free: 1.211 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.01263, allocations: 64.7 kB / 256.8 MB, free: 1.148 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.01305, allocations: 233.5 kB / 257.1 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.01324, allocations: 136 kB / 257.2 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.01331, allocations: 32.38 kB / 257.2 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.01403, allocations: 406 kB / 257.6 MB, free: 276 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.01404, allocations: 192 / 257.6 MB, free: 276 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.209e-05/0.01408, allocations: 20.12 kB / 257.7 MB, free: 256 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.0141, allocations: 8 kB / 257.7 MB, free: 248 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.01459, allocations: 214.5 kB / 257.9 MB, free: 36 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.01698, allocations: 1.456 MB / 259.3 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.01736, allocations: 163 kB / 259.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.01754, allocations: 87.61 kB / 259.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.01757, allocations: 4 kB / 259.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.01793, allocations: 223.4 kB / 259.8 MB, free: 13.97 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.282e-06/0.01793, allocations: 0 / 259.8 MB, free: 13.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001098/0.01903, allocations: 321.3 kB / 260.1 MB, free: 13.64 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.01913, allocations: 110.8 kB / 260.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003858/0.01952, allocations: 328.2 kB / 260.5 MB, free: 13.17 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.01956, allocations: 33.7 kB / 260.6 MB, free: 13.13 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.01981, allocations: 263 kB / 260.8 MB, free: 12.87 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.0199, allocations: 79.41 kB / 260.9 MB, free: 12.79 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.02004, allocations: 75.64 kB / 261 MB, free: 12.71 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003106/0.02035, allocations: 0.5235 MB / 261.5 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.02053, allocations: 76.62 kB / 261.6 MB, free: 12.1 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003661/0.0209, allocations: 276.4 kB / 261.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004265/0.02133, allocations: 269.5 kB / 262.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.02133, allocations: 0 / 262.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007266/0.02205, allocations: 346.7 kB / 262.4 MB, free: 11.1 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.02208, allocations: 8 kB / 262.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.02209, allocations: 4 kB / 262.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.02236, allocations: 51.59 kB / 262.5 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.02264, allocations: 63.91 kB / 262.6 MB, free: 10.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.0249, allocations: 2.051 MB / 264.6 MB, free: 8.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.02517, allocations: 39.77 kB / 264.7 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.02521, allocations: 19.94 kB / 264.7 MB, free: 8.746 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.0002597/0.02547, allocations: 200.6 kB / 264.9 MB, free: 8.539 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.02553, allocations: 31.84 kB / 264.9 MB, free: 8.508 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.881e-05/0.02559, allocations: 26.28 kB / 264.9 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.02559, allocations: 4 kB / 264.9 MB, free: 8.477 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.02559, allocations: 0 / 264.9 MB, free: 8.477 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.0256, allocations: 3.984 kB / 264.9 MB, free: 8.473 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003988/0.026, allocations: 288.4 kB / 265.2 MB, free: 8.156 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.026, allocations: 0 / 265.2 MB, free: 8.156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.02619, allocations: 35.97 kB / 265.3 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.02637, allocations: 51.64 kB / 265.3 MB, free: 8.066 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.0264, allocations: 8 kB / 265.3 MB, free: 8.059 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.02811, allocations: 1.81 MB / 267.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.02811, allocations: 128 / 267.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/0.02887, allocations: 367.6 kB / 267.5 MB, free: 5.734 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.02898, allocations: 43.72 kB / 267.5 MB, free: 5.691 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.02902, allocations: 4 kB / 267.5 MB, free: 5.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.02918, allocations: 19.98 kB / 267.6 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.02929, allocations: 31.94 kB / 267.6 MB, free: 5.637 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.02931, allocations: 4 kB / 267.6 MB, free: 5.633 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002336/0.02954, allocations: 225.2 kB / 267.8 MB, free: 5.414 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02954, allocations: 0 / 267.8 MB, free: 5.414 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004318/0.02998, allocations: 87.84 kB / 267.9 MB, free: 5.328 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.0001631/0.03014, allocations: 111.2 kB / 268 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007514/0.03089, allocations: 380.6 kB / 268.4 MB, free: 4.82 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.03089, allocations: 0.6875 kB / 268.4 MB, free: 4.82 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.03129, allocations: 270.4 kB / 268.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.0316, allocations: 36.41 kB / 268.7 MB, free: 4.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.0332, allocations: 0.6313 MB / 269.3 MB, free: 3.836 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001714/0.03337, allocations: 168.8 kB / 269.5 MB, free: 3.656 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.03347, allocations: 26.27 kB / 269.5 MB, free: 3.629 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.159e-05/0.03353, allocations: 24.5 kB / 269.5 MB, free: 3.602 MB / 250.7 MB Notification: Performance of SimCode: time 1.012e-06/0.03353, allocations: 0 / 269.5 MB, free: 3.602 MB / 250.7 MB Notification: Performance of Templates: time 0.008716/0.04225, allocations: 2.943 MB / 272.5 MB, free: 0.6914 MB / 250.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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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.804484479944222]