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.001996/0.001996, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 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.002342/0.002342, allocations: 153.1 kB / 24.26 MB, free: 156 kB / 18.57 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.499/1.499, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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.322e-06/1.322e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.845e-05/2.978e-05, allocations: 6.25 kB / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004917/0.004947, allocations: 2.915 MB / 270.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.006374, allocations: 0.7281 MB / 271 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.006509, allocations: 12 kB / 271 MB, free: 3.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.006696, allocations: 55.42 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.006915, allocations: 107 kB / 271.1 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.007286, allocations: 111.7 kB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005163/0.007802, allocations: 433.9 kB / 271.7 MB, free: 2.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.008017, allocations: 96.36 kB / 271.8 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003685/0.008385, allocations: 247.5 kB / 272 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.008605, allocations: 119.7 kB / 272.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.008669, allocations: 39.94 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.392e-05/0.008733, allocations: 32 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.014e-05/0.008824, allocations: 83.72 kB / 272.3 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.008998, allocations: 131.7 kB / 272.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.00955, allocations: 430.6 kB / 272.8 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.009555, allocations: 4 kB / 272.8 MB, free: 1.156 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.009555, allocations: 0 / 272.8 MB, free: 1.156 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.009561, allocations: 4 kB / 272.8 MB, free: 1.152 MB / 250.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.001152/0.01071, allocations: 0.5792 MB / 273.4 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.01075, allocations: 8.031 kB / 273.4 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.01089, allocations: 68.7 kB / 273.5 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.0113, allocations: 234.7 kB / 273.7 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.01144, allocations: 132 kB / 273.9 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/0.01151, allocations: 36.38 kB / 273.9 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007091/0.01222, allocations: 386.7 kB / 274.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.01223, allocations: 192 / 274.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.01227, allocations: 16.12 kB / 274.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.01228, allocations: 8 kB / 274.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004879/0.01277, allocations: 226.4 kB / 274.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.01487, allocations: 1.199 MB / 275.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.01525, allocations: 158.5 kB / 275.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.01543, allocations: 76.83 kB / 275.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.01545, allocations: 7.984 kB / 275.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.01582, allocations: 220.5 kB / 276.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.01582, allocations: 0 / 276.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001438/0.01726, allocations: 330.2 kB / 276.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.01735, allocations: 110.8 kB / 276.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002801/0.01763, allocations: 233.9 kB / 276.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.01767, allocations: 29.7 kB / 276.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.01785, allocations: 212.2 kB / 277.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-05/0.01793, allocations: 75.38 kB / 277.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.01805, allocations: 70.02 kB / 277.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.01825, allocations: 334.7 kB / 277.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.01843, allocations: 80.61 kB / 277.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.01875, allocations: 220.9 kB / 277.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004377/0.01919, allocations: 239.5 kB / 278.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01919, allocations: 4 kB / 278.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008086/0.02, allocations: 352.5 kB / 278.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.02002, allocations: 4 kB / 278.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.02002, allocations: 4 kB / 278.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000278/0.0203, allocations: 56.91 kB / 278.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.02058, allocations: 67.91 kB / 278.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001647/0.02223, allocations: 1.438 MB / 280 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.02249, allocations: 39.92 kB / 280 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.02252, allocations: 27.94 kB / 280 MB, free: 9.441 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.0001814/0.0227, allocations: 148.6 kB / 280.2 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.02276, allocations: 35.84 kB / 280.2 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.493e-05/0.02283, allocations: 26.28 kB / 280.2 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.02283, allocations: 3.938 kB / 280.2 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.02283, allocations: 0 / 280.2 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.02284, allocations: 3.984 kB / 280.2 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003338/0.02317, allocations: 237 kB / 280.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.02317, allocations: 0 / 280.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.02339, allocations: 47.91 kB / 280.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.02359, allocations: 48.81 kB / 280.6 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.02361, allocations: 8 kB / 280.6 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.02507, allocations: 1.299 MB / 281.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02507, allocations: 0 / 281.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008265/0.0259, allocations: 352.7 kB / 282.2 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.472e-05/0.02599, allocations: 43.73 kB / 282.3 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.02604, allocations: 8 kB / 282.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.02621, allocations: 20.14 kB / 282.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.864e-05/0.02631, allocations: 31.89 kB / 282.3 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.02633, allocations: 7.984 kB / 282.3 MB, free: 6.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.02651, allocations: 165.2 kB / 282.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02651, allocations: 0 / 282.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000421/0.02693, allocations: 91.84 kB / 282.6 MB, free: 6.727 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 0.0001417/0.02707, allocations: 99.25 kB / 282.7 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006609/0.02774, allocations: 314 kB / 283 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.02774, allocations: 0 / 283 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003611/0.0281, allocations: 194.8 kB / 283.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.02837, allocations: 37.11 kB / 283.2 MB, free: 6.055 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.03014, allocations: 0.6296 MB / 283.8 MB, free: 5.398 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.03032, allocations: 168.8 kB / 284 MB, free: 5.211 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.03043, allocations: 22.28 kB / 284 MB, free: 5.191 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.007e-05/0.03049, allocations: 24.5 kB / 284.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.03049, allocations: 0 / 284.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of Templates: time 0.007753/0.03824, allocations: 2.918 MB / 287 MB, free: 2.293 MB / 266.7 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.656140715931542]