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.000999/0.000999, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.0008981/0.0008981, allocations: 172.1 kB / 25.7 MB, free: 8.445 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.9903/0.9903, allocations: 158.6 MB / 187.6 MB, free: 2.789 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 1.563e-06/1.563e-06, allocations: 0 / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.812e-05, allocations: 2.312 kB / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003219/0.003238, allocations: 3.105 MB / 254.7 MB, free: 4.102 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.005001, allocations: 0.7989 MB / 255.5 MB, free: 3.293 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.005167, allocations: 4 kB / 255.5 MB, free: 3.289 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.005293, allocations: 67.36 kB / 255.6 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.005472, allocations: 110.9 kB / 255.7 MB, free: 3.113 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.005777, allocations: 111.7 kB / 255.8 MB, free: 3.004 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.006129, allocations: 437.7 kB / 256.2 MB, free: 2.57 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.00628, allocations: 95 kB / 256.3 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.006528, allocations: 243.5 kB / 256.5 MB, free: 2.238 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.006679, allocations: 127.7 kB / 256.7 MB, free: 2.113 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.006718, allocations: 40 kB / 256.7 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.151e-05/0.006749, allocations: 32 kB / 256.7 MB, free: 2.043 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.006804, allocations: 83.66 kB / 256.8 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.179e-05/0.006896, allocations: 135.7 kB / 256.9 MB, free: 1.828 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.007149, allocations: 282.9 kB / 257.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007152, allocations: 0 / 257.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.007152, allocations: 0 / 257.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.007157, allocations: 0 / 257.2 MB, free: 1.551 MB / 234.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.0005203/0.007678, allocations: 0.5544 MB / 257.8 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.623e-05/0.007704, allocations: 15.97 kB / 257.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.299e-05/0.007757, allocations: 52.91 kB / 257.8 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.007945, allocations: 190.2 kB / 258 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.008019, allocations: 132 kB / 258.1 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.00806, allocations: 36.38 kB / 258.2 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.008334, allocations: 319.3 kB / 258.5 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.008345, allocations: 4.188 kB / 258.5 MB, free: 156 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.008366, allocations: 20.12 kB / 258.5 MB, free: 136 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.008373, allocations: 8 kB / 258.5 MB, free: 128 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.979e-05/0.008473, allocations: 88.47 kB / 258.6 MB, free: 44 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009156/0.009389, allocations: 1.06 MB / 259.7 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.009526, allocations: 106.5 kB / 259.8 MB, free: 14.8 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.454e-05/0.009571, allocations: 40.84 kB / 259.8 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.009582, allocations: 4 kB / 259.8 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.009719, allocations: 181.2 kB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.032e-06/0.00972, allocations: 7.938 kB / 260 MB, free: 14.53 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003609/0.01008, allocations: 186.3 kB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.01013, allocations: 106.8 kB / 260.3 MB, free: 14.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.01026, allocations: 229.2 kB / 260.5 MB, free: 13.97 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.01028, allocations: 29.7 kB / 260.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.562e-05/0.01035, allocations: 200.2 kB / 260.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.01039, allocations: 83.34 kB / 260.8 MB, free: 13.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-05/0.01045, allocations: 62.02 kB / 260.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.01055, allocations: 338.8 kB / 261.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.526e-05/0.01058, allocations: 28.64 kB / 261.2 MB, free: 13.22 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.512e-05/0.01068, allocations: 180.9 kB / 261.4 MB, free: 12.99 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.01081, allocations: 175.4 kB / 261.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.01081, allocations: 0 / 261.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002271/0.01104, allocations: 216 kB / 261.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.01105, allocations: 4 kB / 261.8 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.01105, allocations: 4 kB / 261.8 MB, free: 12.56 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001065/0.01116, allocations: 40.81 kB / 261.8 MB, free: 12.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.0113, allocations: 80 kB / 261.9 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009446/0.01225, allocations: 1.32 MB / 263.2 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.01236, allocations: 39.78 kB / 263.3 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.01237, allocations: 16.11 kB / 263.3 MB, free: 10.98 MB / 250.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 8.89e-05/0.01246, allocations: 133.7 kB / 263.4 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.01249, allocations: 23.91 kB / 263.5 MB, free: 10.82 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.84e-05/0.01252, allocations: 34.27 kB / 263.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.01252, allocations: 0 / 263.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.01252, allocations: 0 / 263.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.01252, allocations: 0 / 263.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.01267, allocations: 165.7 kB / 263.7 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.01268, allocations: 0 / 263.7 MB, free: 10.6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.0128, allocations: 55.84 kB / 263.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.533e-05/0.01289, allocations: 32.83 kB / 263.7 MB, free: 10.51 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.01291, allocations: 7.984 kB / 263.7 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005682/0.01347, allocations: 1.166 MB / 264.9 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01347, allocations: 0 / 264.9 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000226/0.0137, allocations: 193.7 kB / 265.1 MB, free: 9.039 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.01375, allocations: 39.72 kB / 265.1 MB, free: 9 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.01377, allocations: 7.938 kB / 265.1 MB, free: 8.992 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.963e-05/0.01383, allocations: 16.09 kB / 265.2 MB, free: 8.977 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.189e-05/0.01388, allocations: 35.88 kB / 265.2 MB, free: 8.941 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.01389, allocations: 3.984 kB / 265.2 MB, free: 8.938 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.485e-05/0.01395, allocations: 74.78 kB / 265.3 MB, free: 8.863 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01395, allocations: 0 / 265.3 MB, free: 8.863 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002072/0.01415, allocations: 87.84 kB / 265.4 MB, free: 8.777 MB / 250.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.142e-05/0.01423, allocations: 88.36 kB / 265.4 MB, free: 8.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.01447, allocations: 246.7 kB / 265.7 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.01447, allocations: 0 / 265.7 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.01459, allocations: 168.3 kB / 265.9 MB, free: 8.246 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.0147, allocations: 44.41 kB / 265.9 MB, free: 8.203 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008688/0.01557, allocations: 0.5952 MB / 266.5 MB, free: 7.582 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.856e-05/0.01562, allocations: 92.3 kB / 266.6 MB, free: 7.473 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.086e-05/0.01568, allocations: 22.3 kB / 266.6 MB, free: 7.453 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.01578, allocations: 99.33 kB / 266.7 MB, free: 7.355 MB / 250.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01578, allocations: 0 / 266.7 MB, free: 7.355 MB / 250.7 MB Notification: Performance of Templates: time 0.004925/0.02071, allocations: 3.21 MB / 269.9 MB, free: 4.168 MB / 250.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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","",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.9432354769669473]