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.001327/0.001327, allocations: 80.31 kB / 22.21 MB, free: 2.293 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.001526/0.001526, allocations: 169.9 kB / 25.61 MB, free: 8.582 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 0.9435/0.9435, allocations: 177.1 MB / 206.1 MB, free: 4.469 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 1.542e-06/1.542e-06, allocations: 0 / 274.2 MB, free: 4.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.161e-05/2.315e-05, allocations: 6.25 kB / 274.2 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004577/0.004601, allocations: 3.117 MB / 277.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.006135, allocations: 0.8038 MB / 278.1 MB, free: 464 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.006316, allocations: 8.688 kB / 278.1 MB, free: 456 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.006495, allocations: 59.36 kB / 278.2 MB, free: 396 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.006707, allocations: 112.1 kB / 278.3 MB, free: 284 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.00718, allocations: 123.7 kB / 278.4 MB, free: 160 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.007562, allocations: 433.9 kB / 278.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.007755, allocations: 96.38 kB / 278.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/0.008062, allocations: 251.4 kB / 279.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.008217, allocations: 123.6 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.008256, allocations: 39.98 kB / 279.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.152e-05/0.008318, allocations: 40 kB / 279.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.921e-05/0.008367, allocations: 79.73 kB / 279.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.436e-05/0.008461, allocations: 131.7 kB / 279.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.008738, allocations: 294.9 kB / 279.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.008742, allocations: 0 / 279.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.008743, allocations: 0 / 279.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.008748, allocations: 0 / 279.9 MB, free: 14.69 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.0006808/0.009428, allocations: 0.6868 MB / 280.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.009461, allocations: 12.03 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.009618, allocations: 72.69 kB / 280.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.009862, allocations: 232.9 kB / 280.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.616e-05/0.009939, allocations: 132 kB / 281 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.009979, allocations: 28.38 kB / 281 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.01028, allocations: 330.6 kB / 281.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.01029, allocations: 192 / 281.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.01031, allocations: 24.12 kB / 281.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.01032, allocations: 8 kB / 281.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.01045, allocations: 104.4 kB / 281.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.01155, allocations: 1.358 MB / 282.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.01172, allocations: 119 kB / 283 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.157e-05/0.01177, allocations: 51.64 kB / 283 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.01179, allocations: 4 kB / 283 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001696/0.01196, allocations: 197.4 kB / 283.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.01196, allocations: 0 / 283.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004772/0.01243, allocations: 225.4 kB / 283.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.01248, allocations: 102.8 kB / 283.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.01263, allocations: 292.1 kB / 283.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.01265, allocations: 29.7 kB / 283.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.01276, allocations: 266.9 kB / 284.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.0128, allocations: 71.41 kB / 284.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-05/0.01286, allocations: 75.61 kB / 284.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.013, allocations: 0.5116 MB / 284.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.888e-05/0.01305, allocations: 32.62 kB / 284.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.01317, allocations: 224.5 kB / 285 MB, free: 9.129 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.01333, allocations: 202.8 kB / 285.2 MB, free: 8.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01333, allocations: 4 kB / 285.2 MB, free: 8.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003025/0.01363, allocations: 259.5 kB / 285.5 MB, free: 8.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.01365, allocations: 11.92 kB / 285.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.01366, allocations: 4 kB / 285.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.01381, allocations: 43.59 kB / 285.5 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.01395, allocations: 67.91 kB / 285.6 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009323/0.01488, allocations: 1.966 MB / 287.6 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.015, allocations: 35.78 kB / 287.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.01502, allocations: 15.98 kB / 287.6 MB, free: 6.359 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.0001697/0.01519, allocations: 180.6 kB / 287.8 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.01522, allocations: 35.81 kB / 287.8 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.01525, allocations: 34.27 kB / 287.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.01525, allocations: 0 / 287.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.01525, allocations: 0 / 287.9 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.01526, allocations: 4 kB / 287.9 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.01541, allocations: 193 kB / 288 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01541, allocations: 0 / 288 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.836e-05/0.01551, allocations: 39.91 kB / 288.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-05/0.0156, allocations: 43.66 kB / 288.1 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.01561, allocations: 7.984 kB / 288.1 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009381/0.01655, allocations: 1.725 MB / 289.9 MB, free: 3.953 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01655, allocations: 4.031 kB / 289.9 MB, free: 3.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003432/0.0169, allocations: 246.8 kB / 290.1 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.01695, allocations: 35.84 kB / 290.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.01697, allocations: 7.984 kB / 290.2 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.999e-05/0.01704, allocations: 15.94 kB / 290.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.0171, allocations: 35.88 kB / 290.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.01711, allocations: 4 kB / 290.2 MB, free: 3.586 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.525e-05/0.01718, allocations: 197.1 kB / 290.4 MB, free: 3.395 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01718, allocations: 0 / 290.4 MB, free: 3.395 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.01743, allocations: 91.78 kB / 290.5 MB, free: 3.305 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 9.606e-05/0.01752, allocations: 111.2 kB / 290.6 MB, free: 3.188 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000308/0.01783, allocations: 312.2 kB / 290.9 MB, free: 2.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01783, allocations: 0.6875 kB / 290.9 MB, free: 2.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.01797, allocations: 233.4 kB / 291.1 MB, free: 2.613 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.01814, allocations: 36.42 kB / 291.2 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000998/0.01914, allocations: 0.6149 MB / 291.8 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.659e-05/0.01919, allocations: 92.31 kB / 291.9 MB, free: 1.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.571e-05/0.01925, allocations: 26.28 kB / 291.9 MB, free: 1.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.01935, allocations: 110.2 kB / 292 MB, free: 1.691 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01936, allocations: 0 / 292 MB, free: 1.691 MB / 266.7 MB Notification: Performance of Templates: time 0.005192/0.02455, allocations: 3.221 MB / 295.2 MB, free: 14.52 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.9552589138038456]