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.0009411/0.0009411, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001198/0.001198, allocations: 171.9 kB / 24.92 MB, free: 8.723 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.9366/0.9366, allocations: 177.1 MB / 205.3 MB, free: 5.117 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.202e-06/1.202e-06, allocations: 0 / 273.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.251e-05/1.372e-05, allocations: 2.312 kB / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002907/0.002921, allocations: 3.133 MB / 276.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.004078, allocations: 0.8291 MB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.0042, allocations: 11.94 kB / 277.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.004334, allocations: 63.42 kB / 277.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.004486, allocations: 107 kB / 277.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.004803, allocations: 123.6 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003011/0.005104, allocations: 433.9 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.00525, allocations: 103 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002562/0.005507, allocations: 255.5 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.005655, allocations: 127.6 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.005694, allocations: 36 kB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.813e-05/0.005752, allocations: 36 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.005804, allocations: 83.72 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.522e-05/0.005899, allocations: 135.7 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.006149, allocations: 282.9 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.006151, allocations: 4 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.006151, allocations: 0 / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.006155, allocations: 0 / 279.2 MB, free: 11.41 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.0005432/0.006698, allocations: 0.5583 MB / 279.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.881e-05/0.006727, allocations: 12.03 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.006845, allocations: 60.89 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.007035, allocations: 198.1 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.952e-05/0.007105, allocations: 136 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.007139, allocations: 36.38 kB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.00739, allocations: 315.4 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.007399, allocations: 192 / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.007418, allocations: 20.12 kB / 280.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.007426, allocations: 8 kB / 280.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.007539, allocations: 88.47 kB / 280.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009116/0.008451, allocations: 1.056 MB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.008592, allocations: 102.5 kB / 281.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.662e-05/0.008639, allocations: 48.78 kB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.008653, allocations: 4 kB / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001279/0.008781, allocations: 177.2 kB / 282 MB, free: 8.383 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.345e-06/0.008783, allocations: 3.984 kB / 282 MB, free: 8.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003778/0.009161, allocations: 189.5 kB / 282.2 MB, free: 8.188 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.009202, allocations: 110.8 kB / 282.3 MB, free: 8.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.009324, allocations: 229.2 kB / 282.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.009341, allocations: 29.7 kB / 282.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.698e-05/0.009418, allocations: 204.1 kB / 282.7 MB, free: 7.582 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.009457, allocations: 79.39 kB / 282.8 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.009519, allocations: 61.95 kB / 282.9 MB, free: 7.438 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.472e-05/0.009593, allocations: 338.8 kB / 283.2 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.71e-05/0.009631, allocations: 28.64 kB / 283.2 MB, free: 7.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.823e-05/0.009729, allocations: 187.3 kB / 283.4 MB, free: 6.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.009856, allocations: 167.4 kB / 283.6 MB, free: 6.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.009859, allocations: 0 / 283.6 MB, free: 6.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002237/0.01008, allocations: 216.5 kB / 283.8 MB, free: 6.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.01009, allocations: 8 kB / 283.8 MB, free: 6.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.0101, allocations: 11.88 kB / 283.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001154/0.01021, allocations: 49.14 kB / 283.9 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.01034, allocations: 63.91 kB / 283.9 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006686/0.01101, allocations: 1.312 MB / 285.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.01112, allocations: 47.89 kB / 285.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.01113, allocations: 8 kB / 285.3 MB, free: 4.828 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 7.949e-05/0.01121, allocations: 133.8 kB / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.01123, allocations: 23.91 kB / 285.4 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.427e-05/0.01126, allocations: 30.28 kB / 285.5 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.01126, allocations: 3.984 kB / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.01126, allocations: 0 / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.01126, allocations: 0 / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.01139, allocations: 169.6 kB / 285.6 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.01139, allocations: 0 / 285.6 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.782e-05/0.01148, allocations: 31.98 kB / 285.7 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.009e-05/0.01156, allocations: 36.81 kB / 285.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-06/0.01157, allocations: 7.938 kB / 285.7 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004994/0.01207, allocations: 1.182 MB / 286.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.01207, allocations: 0 / 286.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.01228, allocations: 201.7 kB / 287.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.01233, allocations: 27.73 kB / 287.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.01235, allocations: 8 kB / 287.1 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.222e-05/0.01241, allocations: 20.14 kB / 287.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.01246, allocations: 27.94 kB / 287.2 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-06/0.01246, allocations: 4 kB / 287.2 MB, free: 2.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.255e-05/0.01252, allocations: 74.78 kB / 287.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01252, allocations: 0 / 287.2 MB, free: 2.719 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002063/0.01272, allocations: 87.84 kB / 287.3 MB, free: 2.633 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 7.531e-05/0.0128, allocations: 92.34 kB / 287.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002444/0.01304, allocations: 242.3 kB / 287.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.01305, allocations: 0 / 287.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.01317, allocations: 178.5 kB / 287.8 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001118/0.01328, allocations: 32.48 kB / 287.9 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009127/0.01419, allocations: 0.5991 MB / 288.5 MB, free: 1.438 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.603e-05/0.01424, allocations: 88.31 kB / 288.6 MB, free: 1.332 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.694e-05/0.0143, allocations: 26.28 kB / 288.6 MB, free: 1.309 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.747e-05/0.0144, allocations: 95.3 kB / 288.7 MB, free: 1.215 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.0144, allocations: 0 / 288.7 MB, free: 1.215 MB / 266.7 MB Notification: Performance of Templates: time 0.08919/0.1036, allocations: 3.127 MB / 291.8 MB, free: 25.57 MB / 266.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.690246819984168]