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.0009975/0.0009975, allocations: 83.69 kB / 21.19 MB, free: 3.391 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.0009628/0.0009628, allocations: 165 kB / 24.56 MB, free: 20 kB / 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.9596/0.9596, allocations: 177.1 MB / 205 MB, free: 5.633 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.785e-06/2.785e-06, allocations: 4 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.436e-05/1.714e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002951/0.002968, allocations: 3.155 MB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009865/0.003955, allocations: 0.806 MB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.004066, allocations: 4 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.004206, allocations: 63.42 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.004344, allocations: 114.9 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.004655, allocations: 115.7 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.004953, allocations: 437.9 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.005112, allocations: 92.38 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.005355, allocations: 255.4 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.005498, allocations: 131.6 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.65e-05/0.005545, allocations: 32 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.682e-05/0.005632, allocations: 40 kB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.579e-05/0.005697, allocations: 83.67 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.005826, allocations: 135.7 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.006088, allocations: 286.8 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.006091, allocations: 0 / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.006092, allocations: 0 / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.006096, allocations: 0 / 278.7 MB, free: 11.79 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.0006688/0.006765, allocations: 0.683 MB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.006797, allocations: 8.031 kB / 279.4 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.006942, allocations: 84.64 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.007174, allocations: 229 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.254e-05/0.007256, allocations: 128 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.007295, allocations: 36.38 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.00763, allocations: 342.8 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.007639, allocations: 4.172 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.007663, allocations: 28.06 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.007673, allocations: 8 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.007851, allocations: 119.8 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.00891, allocations: 1.354 MB / 281.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.009115, allocations: 138.5 kB / 281.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.183e-05/0.009187, allocations: 59.66 kB / 281.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.009201, allocations: 4 kB / 281.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.009368, allocations: 191.4 kB / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.122e-06/0.009369, allocations: 0 / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005066/0.009876, allocations: 264.7 kB / 282.4 MB, free: 7.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.009922, allocations: 102.8 kB / 282.5 MB, free: 7.734 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.01012, allocations: 292.2 kB / 282.7 MB, free: 7.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.01014, allocations: 29.7 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.01024, allocations: 258.9 kB / 283 MB, free: 7.141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.01028, allocations: 71.42 kB / 283.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.43e-05/0.01034, allocations: 75.62 kB / 283.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.01046, allocations: 0.5078 MB / 283.7 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.621e-05/0.01053, allocations: 44.62 kB / 283.7 MB, free: 6.426 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.01066, allocations: 236.5 kB / 284 MB, free: 6.121 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/0.01084, allocations: 213.5 kB / 284.2 MB, free: 5.863 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.01085, allocations: 0 / 284.2 MB, free: 5.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003321/0.01118, allocations: 287.4 kB / 284.4 MB, free: 5.574 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.01119, allocations: 4 kB / 284.4 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01119, allocations: 4 kB / 284.4 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001421/0.01134, allocations: 47.58 kB / 284.5 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.01148, allocations: 67.91 kB / 284.6 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008814/0.01236, allocations: 1.977 MB / 286.5 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.01247, allocations: 43.7 kB / 286.6 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.01249, allocations: 19.94 kB / 286.6 MB, free: 3.289 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.272e-05/0.01258, allocations: 180.6 kB / 286.8 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.01261, allocations: 31.86 kB / 286.8 MB, free: 3.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.205e-05/0.01263, allocations: 26.27 kB / 286.8 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01263, allocations: 4 kB / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.01263, allocations: 0 / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.01264, allocations: 0 / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.0128, allocations: 240.3 kB / 287.1 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.0128, allocations: 4 kB / 287.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.998e-05/0.0129, allocations: 31.98 kB / 287.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.225e-05/0.01299, allocations: 55.52 kB / 287.2 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.013, allocations: 0 / 287.2 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006698/0.01367, allocations: 1.752 MB / 288.9 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01367, allocations: 8.062 kB / 288.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.01399, allocations: 263.8 kB / 289.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.01404, allocations: 39.78 kB / 289.2 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.01406, allocations: 7.984 kB / 289.2 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.565e-05/0.01412, allocations: 12 kB / 289.2 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.652e-05/0.01419, allocations: 31.94 kB / 289.3 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.0142, allocations: 4 kB / 289.3 MB, free: 424 kB / 266.7 MB Notification: Performance of sorting global known variables: time 9.601e-05/0.0143, allocations: 197.2 kB / 289.5 MB, free: 224 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0143, allocations: 0 / 289.5 MB, free: 224 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002269/0.01452, allocations: 95.78 kB / 289.6 MB, free: 128 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 7.46e-05/0.0146, allocations: 107.2 kB / 289.7 MB, free: 12 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.01495, allocations: 324.3 kB / 290 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.01495, allocations: 0.6875 kB / 290 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.0151, allocations: 248.4 kB / 290.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.01526, allocations: 37.62 kB / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.01625, allocations: 0.6235 MB / 290.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.53e-05/0.0163, allocations: 88.33 kB / 291 MB, free: 14.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.074e-05/0.01636, allocations: 26.28 kB / 291 MB, free: 14.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.0164, allocations: 20.5 kB / 291 MB, free: 14.58 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.0164, allocations: 0 / 291 MB, free: 14.58 MB / 282.7 MB Notification: Performance of Templates: time 0.004677/0.02108, allocations: 3.077 MB / 294.1 MB, free: 11.54 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: 2.876412484794855]