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.0008352/0.0008352, allocations: 91.61 kB / 22.18 MB, free: 2.383 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.0007647/0.0007647, allocations: 157.4 kB / 25.44 MB, free: 9.352 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 0.8367/0.8367, allocations: 158.6 MB / 187.2 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.826e-06/2.826e-06, allocations: 4 kB / 299.7 MB, free: 7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.544e-05, allocations: 6.281 kB / 299.7 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00287/0.002896, allocations: 2.848 MB / 302.6 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.004051, allocations: 0.7603 MB / 303.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.004198, allocations: 7.938 kB / 303.3 MB, free: 3.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.004336, allocations: 55.48 kB / 303.4 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.004482, allocations: 110.9 kB / 303.5 MB, free: 3.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.004801, allocations: 115.7 kB / 303.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006392/0.005441, allocations: 433.9 kB / 304 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.005619, allocations: 96.36 kB / 304.1 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.005853, allocations: 243.5 kB / 304.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.005996, allocations: 123.6 kB / 304.5 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.00604, allocations: 36 kB / 304.5 MB, free: 2.152 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.29e-05/0.006073, allocations: 36 kB / 304.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.006122, allocations: 75.73 kB / 304.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.054e-05/0.006212, allocations: 135.7 kB / 304.8 MB, free: 1.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003106/0.006523, allocations: 434.6 kB / 305.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006525, allocations: 4 kB / 305.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.006526, allocations: 0 / 305.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.006532, allocations: 0 / 305.2 MB, free: 1.48 MB / 282.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.0007143/0.007246, allocations: 0.5751 MB / 305.8 MB, free: 0.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.007281, allocations: 11.98 kB / 305.8 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.461e-05/0.007345, allocations: 56.62 kB / 305.8 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.007622, allocations: 218.8 kB / 306 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.003e-05/0.007712, allocations: 132 kB / 306.2 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.007749, allocations: 32.38 kB / 306.2 MB, free: 392 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.008151, allocations: 390.6 kB / 306.6 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.008162, allocations: 4.188 kB / 306.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.008186, allocations: 16.12 kB / 306.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.008194, allocations: 8 kB / 306.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.008452, allocations: 222.5 kB / 306.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.009548, allocations: 1.195 MB / 308 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.009769, allocations: 154.6 kB / 308.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.963e-05/0.009869, allocations: 80.83 kB / 308.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.009885, allocations: 0 / 308.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.01009, allocations: 213.2 kB / 308.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.01009, allocations: 0 / 308.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006156/0.01071, allocations: 330.5 kB / 308.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.01076, allocations: 110.8 kB / 308.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.01092, allocations: 237.8 kB / 309.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.01094, allocations: 33.7 kB / 309.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.01104, allocations: 220.1 kB / 309.4 MB, free: 13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.01108, allocations: 71.44 kB / 309.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.01115, allocations: 65.97 kB / 309.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.01123, allocations: 338.8 kB / 309.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.674e-05/0.01133, allocations: 72.62 kB / 309.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.01149, allocations: 232.9 kB / 310.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.01172, allocations: 235.5 kB / 310.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.01172, allocations: 0 / 310.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003949/0.01212, allocations: 343.8 kB / 310.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.01213, allocations: 4 kB / 310.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01214, allocations: 4 kB / 310.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.01231, allocations: 64.97 kB / 310.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.01246, allocations: 63.91 kB / 310.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.0136, allocations: 1.434 MB / 312.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.01372, allocations: 47.95 kB / 312.3 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.01374, allocations: 23.86 kB / 312.3 MB, free: 9.816 MB / 298.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.0001099/0.01385, allocations: 153.8 kB / 312.5 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.01387, allocations: 23.86 kB / 312.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.0139, allocations: 26.28 kB / 312.5 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.0139, allocations: 7.984 kB / 312.5 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.0139, allocations: 3.938 kB / 312.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.0139, allocations: 0 / 312.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.01407, allocations: 241 kB / 312.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01407, allocations: 0 / 312.8 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.01417, allocations: 35.97 kB / 312.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.01428, allocations: 56.75 kB / 312.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.01429, allocations: 0 / 312.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006433/0.01493, allocations: 1.295 MB / 314.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.01493, allocations: 4 kB / 314.2 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.01532, allocations: 349.6 kB / 314.5 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.293e-05/0.01537, allocations: 40.02 kB / 314.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.01539, allocations: 8 kB / 314.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.99e-05/0.01546, allocations: 15.98 kB / 314.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.01552, allocations: 27.95 kB / 314.6 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.01553, allocations: 11.98 kB / 314.6 MB, free: 7.375 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.01563, allocations: 165.2 kB / 314.8 MB, free: 7.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01563, allocations: 0 / 314.8 MB, free: 7.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002365/0.01586, allocations: 95.78 kB / 314.9 MB, free: 7.117 MB / 298.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.022e-05/0.01595, allocations: 111.2 kB / 315 MB, free: 7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000368/0.01632, allocations: 302.4 kB / 315.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01632, allocations: 0 / 315.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.01647, allocations: 187.5 kB / 315.5 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.01664, allocations: 41.11 kB / 315.5 MB, free: 6.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008579/0.0175, allocations: 0.6448 MB / 316.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.121e-05/0.01759, allocations: 164.8 kB / 316.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.01764, allocations: 28.44 kB / 316.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01764, allocations: 0 / 316.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of Templates: time 0.004371/0.02202, allocations: 4.674 MB / 321 MB, free: 0.8906 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] 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.382916606031358]