Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009436/0.0009436, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008951/0.0008951, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9807/0.9807, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 3.938 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/2.049e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002985/0.003006, allocations: 3.139 MB / 271.1 MB, free: 3.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.004068, allocations: 0.736 MB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.004197, allocations: 8 kB / 271.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.004325, allocations: 59.36 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.004464, allocations: 106.9 kB / 272 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.004761, allocations: 115.7 kB / 272.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002976/0.005059, allocations: 437.9 kB / 272.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.005224, allocations: 92.38 kB / 272.7 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.005415, allocations: 247.5 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.005556, allocations: 123.7 kB / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.005596, allocations: 36 kB / 273.1 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.149e-05/0.005637, allocations: 36 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.277e-05/0.00569, allocations: 87.66 kB / 273.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.685e-05/0.005787, allocations: 131.7 kB / 273.3 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.006032, allocations: 286.9 kB / 273.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.006034, allocations: 0 / 273.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.006035, allocations: 0 / 273.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.006041, allocations: 0 / 273.6 MB, free: 0.7852 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.0006494/0.00669, allocations: 0.6752 MB / 274.3 MB, free: 72 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.006723, allocations: 12.03 kB / 274.3 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.909e-05/0.006812, allocations: 72.75 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.007031, allocations: 229.5 kB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.679e-05/0.007108, allocations: 124 kB / 274.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.007151, allocations: 40.36 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.007561, allocations: 350.7 kB / 275.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.007573, allocations: 192 / 275.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.007596, allocations: 20.12 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.007604, allocations: 8 kB / 275.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.007785, allocations: 123.8 kB / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.008806, allocations: 1.354 MB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.00899, allocations: 131 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.271e-05/0.009063, allocations: 55.67 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.009078, allocations: 4 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/0.009246, allocations: 198.1 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 8.62e-07/0.009247, allocations: 0 / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.000513/0.00976, allocations: 253.4 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.009802, allocations: 106.8 kB / 277.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.009961, allocations: 288.2 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.009977, allocations: 33.7 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.892e-05/0.01008, allocations: 258.9 kB / 277.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.01012, allocations: 71.44 kB / 278 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.01019, allocations: 67.67 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.0103, allocations: 0.504 MB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.684e-05/0.01037, allocations: 40.62 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.01051, allocations: 236.5 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.01069, allocations: 213.5 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01069, allocations: 8.031 kB / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003088/0.011, allocations: 279.2 kB / 279.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.01101, allocations: 10.81 kB / 279.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.01102, allocations: 4.344 kB / 279.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.01116, allocations: 55.58 kB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.0113, allocations: 63.84 kB / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008317/0.01213, allocations: 1.985 MB / 281.4 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.01224, allocations: 35.78 kB / 281.4 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.01226, allocations: 19.92 kB / 281.5 MB, free: 8.32 MB / 266.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 9.053e-05/0.01235, allocations: 176.5 kB / 281.6 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.01237, allocations: 31.86 kB / 281.7 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.0124, allocations: 34.27 kB / 281.7 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.0124, allocations: 4.062 kB / 281.7 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.0124, allocations: 0 / 281.7 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.0124, allocations: 4 kB / 281.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.01265, allocations: 240.3 kB / 281.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.01265, allocations: 0 / 281.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.285e-05/0.01275, allocations: 35.92 kB / 282 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.665e-05/0.01283, allocations: 39.66 kB / 282 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.01285, allocations: 11.98 kB / 282 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006661/0.01351, allocations: 1.747 MB / 283.8 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.01351, allocations: 3.984 kB / 283.8 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.01382, allocations: 271.1 kB / 284 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.01387, allocations: 47.66 kB / 284.1 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.01389, allocations: 8 kB / 284.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.672e-05/0.01396, allocations: 19.98 kB / 284.1 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.01401, allocations: 27.94 kB / 284.1 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.01402, allocations: 8 kB / 284.2 MB, free: 5.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.133e-05/0.01411, allocations: 197.1 kB / 284.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01411, allocations: 0 / 284.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.01434, allocations: 91.78 kB / 284.4 MB, free: 5.148 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: 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 8.459e-05/0.01442, allocations: 107.3 kB / 284.5 MB, free: 5.031 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.01475, allocations: 320.9 kB / 284.9 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01475, allocations: 0 / 284.9 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.01491, allocations: 241.7 kB / 285.1 MB, free: 4.438 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.01507, allocations: 41.05 kB / 285.1 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009995/0.01607, allocations: 0.6157 MB / 285.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.475e-05/0.01612, allocations: 88.31 kB / 285.8 MB, free: 3.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.908e-05/0.01618, allocations: 26.28 kB / 285.9 MB, free: 3.621 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.723e-05/0.01621, allocations: 24.44 kB / 285.9 MB, free: 3.598 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01621, allocations: 0 / 285.9 MB, free: 3.598 MB / 266.7 MB Notification: Performance of Templates: time 0.004689/0.0209, allocations: 2.955 MB / 288.8 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.9757807520218194]