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.001567/0.001567, allocations: 81.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001853/0.001853, allocations: 146.7 kB / 23.93 MB, free: 4.188 MB / 14.72 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 1.394/1.394, allocations: 173.4 MB / 200.4 MB, free: 12.91 MB / 190.1 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.333e-06/1.333e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.86e-05/2.994e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003528/0.003558, allocations: 2.898 MB / 321.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.004809, allocations: 0.7227 MB / 322.6 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.004955, allocations: 8.594 kB / 322.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.005138, allocations: 57.48 kB / 322.6 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.005316, allocations: 112.7 kB / 322.7 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.005676, allocations: 111.4 kB / 322.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.006065, allocations: 432.1 kB / 323.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.006265, allocations: 96.23 kB / 323.4 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003075/0.006572, allocations: 246 kB / 323.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.006792, allocations: 125.6 kB / 323.7 MB, free: 496 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.56e-05/0.006848, allocations: 36.16 kB / 323.8 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.443e-05/0.006912, allocations: 38.19 kB / 323.8 MB, free: 492 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.066e-05/0.006993, allocations: 82.31 kB / 323.9 MB, free: 436 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.007153, allocations: 128.8 kB / 324 MB, free: 380 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.007681, allocations: 435.2 kB / 324.4 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.007686, allocations: 1.375 kB / 324.4 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd: time 5.21e-07/0.007686, allocations: 3.938 kB / 324.4 MB, free: 204 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.007694, allocations: 0.8438 kB / 324.4 MB, free: 204 kB / 286.1 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.001171/0.008865, allocations: 0.5768 MB / 325 MB, free: 15.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.008905, allocations: 9.797 kB / 325 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.564e-05/0.009001, allocations: 41.8 kB / 325.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.00942, allocations: 225.6 kB / 325.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.009546, allocations: 128.4 kB / 325.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.0096, allocations: 34.84 kB / 325.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006469/0.01025, allocations: 388.3 kB / 325.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.01026, allocations: 5.562 kB / 325.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.0103, allocations: 19.39 kB / 325.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.01031, allocations: 8.25 kB / 325.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.01076, allocations: 218 kB / 326.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.01272, allocations: 1.178 MB / 327.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.01308, allocations: 155.9 kB / 327.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/0.01329, allocations: 82.47 kB / 327.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.01331, allocations: 1.688 kB / 327.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.0137, allocations: 217.3 kB / 327.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.513e-06/0.0137, allocations: 0 / 327.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001175/0.01487, allocations: 322.1 kB / 328 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.01496, allocations: 115.5 kB / 328.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.01522, allocations: 241.2 kB / 328.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.01525, allocations: 32.52 kB / 328.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.01542, allocations: 205.6 kB / 328.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.91e-05/0.01548, allocations: 71.41 kB / 328.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.01559, allocations: 61.91 kB / 328.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.01576, allocations: 344.5 kB / 329 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.01593, allocations: 74.3 kB / 329.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.01622, allocations: 231.6 kB / 329.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.01663, allocations: 232.4 kB / 329.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.01664, allocations: 1 kB / 329.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000757/0.01739, allocations: 340.6 kB / 329.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.01741, allocations: 9.688 kB / 329.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01742, allocations: 3.359 kB / 329.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.01768, allocations: 63.11 kB / 330 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.01793, allocations: 65.47 kB / 330 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.01939, allocations: 1.453 MB / 331.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.01966, allocations: 40.53 kB / 331.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.01969, allocations: 19.69 kB / 331.6 MB, free: 10.8 MB / 302.1 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.0001714/0.01986, allocations: 158.2 kB / 331.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.0199, allocations: 28.55 kB / 331.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.01996, allocations: 34.38 kB / 331.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01996, allocations: 4.328 kB / 331.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.01996, allocations: 0 / 331.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.01997, allocations: 1.5 kB / 331.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002997/0.02027, allocations: 234.1 kB / 332 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.02027, allocations: 0 / 332 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.02046, allocations: 34.5 kB / 332 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001997/0.02066, allocations: 59.69 kB / 332.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.02068, allocations: 3.688 kB / 332.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.02194, allocations: 1.295 MB / 333.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.02194, allocations: 3.938 kB / 333.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.02271, allocations: 339.5 kB / 333.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.451e-05/0.0228, allocations: 48.12 kB / 333.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.02284, allocations: 6.25 kB / 333.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.02302, allocations: 15.12 kB / 333.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.309e-05/0.02311, allocations: 32.86 kB / 333.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.02313, allocations: 4.812 kB / 333.8 MB, free: 8.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.02329, allocations: 170 kB / 334 MB, free: 8.828 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02329, allocations: 0 / 334 MB, free: 8.828 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004054/0.0237, allocations: 89.66 kB / 334.1 MB, free: 8.809 MB / 302.1 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 0.0001358/0.02383, allocations: 110.3 kB / 334.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.02445, allocations: 305.3 kB / 334.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.02445, allocations: 0 / 334.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.02477, allocations: 202.4 kB / 334.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.02505, allocations: 32 kB / 334.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.02647, allocations: 0.6097 MB / 335.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.02664, allocations: 172.7 kB / 335.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.02674, allocations: 23.16 kB / 335.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.0268, allocations: 26.12 kB / 335.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.0268, allocations: 0 / 335.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of Templates: time 0.007404/0.0342, allocations: 2.89 MB / 338.4 MB, free: 6.551 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.53573302924633]