Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009896/0.0009896, allocations: 67.77 kB / 21.69 MB, free: 2.852 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.001107/0.001107, allocations: 165.5 kB / 24.99 MB, free: 8.742 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 1.076/1.076, allocations: 177.1 MB / 205.3 MB, free: 5.648 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.275e-06/2.275e-06, allocations: 0 / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.096e-05/3.323e-05, allocations: 6.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003375/0.003408, allocations: 3.151 MB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.004617, allocations: 0.7944 MB / 277 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.004765, allocations: 7.938 kB / 277 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.004926, allocations: 67.36 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.005077, allocations: 111 kB / 277.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.005451, allocations: 119.7 kB / 277.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004801/0.005931, allocations: 437.9 kB / 277.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.006112, allocations: 92.38 kB / 277.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.00638, allocations: 251.5 kB / 278.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.006529, allocations: 131.7 kB / 278.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.006571, allocations: 32 kB / 278.2 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.006632, allocations: 40 kB / 278.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.825e-05/0.00668, allocations: 83.66 kB / 278.4 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.00678, allocations: 131.7 kB / 278.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.007054, allocations: 286.9 kB / 278.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.584e-06/0.007056, allocations: 0 / 278.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.007057, allocations: 0 / 278.8 MB, free: 12.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.007062, allocations: 0 / 278.8 MB, free: 12.1 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000831/0.007893, allocations: 0.683 MB / 279.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.007927, allocations: 8.031 kB / 279.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.008093, allocations: 84.64 kB / 279.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.008358, allocations: 229.6 kB / 279.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.483e-05/0.008443, allocations: 140 kB / 279.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.066e-05/0.008484, allocations: 32.38 kB / 279.9 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.008846, allocations: 342.8 kB / 280.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.008856, allocations: 4.188 kB / 280.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.008883, allocations: 16.12 kB / 280.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.008894, allocations: 8 kB / 280.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.009088, allocations: 127.8 kB / 280.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.01047, allocations: 1.358 MB / 281.8 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.01068, allocations: 139 kB / 281.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.652e-05/0.01076, allocations: 59.66 kB / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.01077, allocations: 0 / 282 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.01095, allocations: 195.4 kB / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.002e-06/0.01096, allocations: 0 / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005841/0.01154, allocations: 252.5 kB / 282.4 MB, free: 8.176 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.01159, allocations: 110.8 kB / 282.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.01176, allocations: 288.2 kB / 282.8 MB, free: 7.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.01178, allocations: 33.7 kB / 282.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.0119, allocations: 258.9 kB / 283.1 MB, free: 7.449 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.01196, allocations: 71.42 kB / 283.2 MB, free: 7.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-05/0.01203, allocations: 75.62 kB / 283.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.01215, allocations: 0.5039 MB / 283.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.01222, allocations: 40.62 kB / 283.8 MB, free: 6.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.01236, allocations: 244.5 kB / 284 MB, free: 6.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.01256, allocations: 209.5 kB / 284.2 MB, free: 6.176 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.01256, allocations: 4 kB / 284.2 MB, free: 6.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003482/0.01291, allocations: 287.2 kB / 284.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.01292, allocations: 4 kB / 284.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.01293, allocations: 4 kB / 284.5 MB, free: 5.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.01311, allocations: 51.92 kB / 284.6 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.01326, allocations: 67.89 kB / 284.6 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.01426, allocations: 1.977 MB / 286.6 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.01439, allocations: 43.89 kB / 286.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.0144, allocations: 15.94 kB / 286.7 MB, free: 3.598 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 0.0001031/0.01451, allocations: 174.9 kB / 286.8 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.01454, allocations: 35.8 kB / 286.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.625e-05/0.01456, allocations: 30.27 kB / 286.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.01456, allocations: 0 / 286.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.01457, allocations: 7.938 kB / 286.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.01457, allocations: 0 / 286.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.01475, allocations: 240.3 kB / 287.1 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01475, allocations: 4 kB / 287.1 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.01485, allocations: 31.98 kB / 287.2 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.01495, allocations: 47.64 kB / 287.2 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01496, allocations: 0 / 287.2 MB, free: 2.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007153/0.01568, allocations: 1.763 MB / 289 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01568, allocations: 0 / 289 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003253/0.016, allocations: 267.8 kB / 289.3 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.01606, allocations: 35.78 kB / 289.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.01608, allocations: 11.98 kB / 289.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.918e-05/0.01615, allocations: 12.12 kB / 289.3 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.01621, allocations: 35.94 kB / 289.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.01622, allocations: 4 kB / 289.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.599e-05/0.01632, allocations: 197.1 kB / 289.5 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01632, allocations: 0 / 289.5 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002395/0.01656, allocations: 91.78 kB / 289.6 MB, free: 440 kB / 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 9.125e-05/0.01665, allocations: 107.2 kB / 289.7 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003747/0.01703, allocations: 328.5 kB / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01703, allocations: 0 / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/0.01719, allocations: 240.5 kB / 290.3 MB, free: 15.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.01737, allocations: 31.75 kB / 290.3 MB, free: 15.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.01845, allocations: 0.6276 MB / 290.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.665e-05/0.0185, allocations: 92.27 kB / 291 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.484e-05/0.01856, allocations: 26.28 kB / 291.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.0186, allocations: 24.44 kB / 291.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0186, allocations: 0 / 291.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of Templates: time 0.005517/0.02412, allocations: 2.958 MB / 294 MB, free: 11.97 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.1615052751731128]