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.001318/0.001318, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001257/0.001257, allocations: 158.9 kB / 25.75 MB, free: 8.949 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 1.033/1.033, allocations: 158.6 MB / 187.5 MB, free: 2.953 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.724e-06/1.724e-06, allocations: 0 / 251.1 MB, free: 7.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.199e-05/3.371e-05, allocations: 6.25 kB / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006939/0.006973, allocations: 3.074 MB / 254.2 MB, free: 4.688 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.008439, allocations: 0.7798 MB / 255 MB, free: 3.898 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.008631, allocations: 11.94 kB / 255 MB, free: 3.887 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.008803, allocations: 51.44 kB / 255 MB, free: 3.836 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.008987, allocations: 111 kB / 255.1 MB, free: 3.727 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.009346, allocations: 115.7 kB / 255.3 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.009711, allocations: 433.8 kB / 255.7 MB, free: 3.188 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.009912, allocations: 92.36 kB / 255.8 MB, free: 3.09 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.01018, allocations: 251.5 kB / 256 MB, free: 2.844 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.01034, allocations: 127.6 kB / 256.1 MB, free: 2.719 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.01039, allocations: 36 kB / 256.2 MB, free: 2.684 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.699e-05/0.01043, allocations: 36 kB / 256.2 MB, free: 2.648 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.647e-05/0.01049, allocations: 75.73 kB / 256.3 MB, free: 2.574 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.0106, allocations: 135.7 kB / 256.4 MB, free: 2.441 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.0109, allocations: 286.9 kB / 256.7 MB, free: 2.16 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01091, allocations: 0 / 256.7 MB, free: 2.16 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01091, allocations: 4 kB / 256.7 MB, free: 2.156 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.01091, allocations: 0 / 256.7 MB, free: 2.156 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.0007876/0.0117, allocations: 0.6713 MB / 257.4 MB, free: 1.445 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.01174, allocations: 15.98 kB / 257.4 MB, free: 1.43 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.01185, allocations: 72.66 kB / 257.5 MB, free: 1.359 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.01215, allocations: 225.6 kB / 257.7 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.633e-05/0.01224, allocations: 132 kB / 257.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.01229, allocations: 36.38 kB / 257.8 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.01268, allocations: 342.8 kB / 258.2 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.01269, allocations: 4.125 kB / 258.2 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.01272, allocations: 16.12 kB / 258.2 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.01273, allocations: 8 kB / 258.2 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.01294, allocations: 131.8 kB / 258.3 MB, free: 404 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.0142, allocations: 1.35 MB / 259.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.01443, allocations: 131 kB / 259.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.762e-05/0.0145, allocations: 55.66 kB / 259.9 MB, free: 14.76 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.01452, allocations: 4 kB / 259.9 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.01472, allocations: 195.4 kB / 260.1 MB, free: 14.52 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.272e-06/0.01472, allocations: 0 / 260.1 MB, free: 14.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006015/0.01533, allocations: 257.3 kB / 260.3 MB, free: 14.26 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.01538, allocations: 102.8 kB / 260.4 MB, free: 14.14 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.01556, allocations: 292.2 kB / 260.7 MB, free: 13.83 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.01558, allocations: 25.7 kB / 260.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004328/0.01602, allocations: 266.9 kB / 261 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.01607, allocations: 71.41 kB / 261.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.01614, allocations: 71.64 kB / 261.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.01626, allocations: 0.5039 MB / 261.6 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.707e-05/0.01634, allocations: 52.62 kB / 261.7 MB, free: 12.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.01649, allocations: 236.4 kB / 261.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.01669, allocations: 213.5 kB / 262.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.01669, allocations: 4 kB / 262.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003773/0.01707, allocations: 278.5 kB / 262.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.01709, allocations: 8.328 kB / 262.4 MB, free: 11.97 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.01709, allocations: 8 kB / 262.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001825/0.01728, allocations: 43.59 kB / 262.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.01744, allocations: 67.84 kB / 262.5 MB, free: 11.85 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.01853, allocations: 1.981 MB / 264.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.01867, allocations: 35.83 kB / 264.5 MB, free: 9.715 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.01869, allocations: 15.94 kB / 264.6 MB, free: 9.699 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 0.0001147/0.0188, allocations: 176.5 kB / 264.7 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.01884, allocations: 31.86 kB / 264.8 MB, free: 9.484 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.01887, allocations: 34.33 kB / 264.8 MB, free: 9.449 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.01887, allocations: 0 / 264.8 MB, free: 9.449 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.01888, allocations: 0 / 264.8 MB, free: 9.449 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.01888, allocations: 11.97 kB / 264.8 MB, free: 9.438 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.01908, allocations: 232.4 kB / 265 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01908, allocations: 0 / 265 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.01918, allocations: 35.98 kB / 265.1 MB, free: 9.141 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.0193, allocations: 51.58 kB / 265.1 MB, free: 9.086 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.01931, allocations: 4 kB / 265.1 MB, free: 9.082 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00085/0.02016, allocations: 1.755 MB / 266.9 MB, free: 7.199 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.02017, allocations: 0 / 266.9 MB, free: 7.199 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003407/0.02051, allocations: 267.9 kB / 267.1 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.02057, allocations: 43.7 kB / 267.2 MB, free: 6.867 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.0206, allocations: 8 kB / 267.2 MB, free: 6.859 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.854e-05/0.02067, allocations: 8 kB / 267.2 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.32e-05/0.02075, allocations: 35.94 kB / 267.2 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.02076, allocations: 7.984 kB / 267.2 MB, free: 6.809 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.02087, allocations: 193.1 kB / 267.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02087, allocations: 0 / 267.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002964/0.02117, allocations: 91.78 kB / 267.5 MB, free: 6.531 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 0.0001302/0.0213, allocations: 111.2 kB / 267.6 MB, free: 6.414 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004305/0.02173, allocations: 324.3 kB / 267.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.02173, allocations: 0 / 267.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.02219, allocations: 238.4 kB / 268.2 MB, free: 5.824 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.0224, allocations: 41.09 kB / 268.2 MB, free: 5.785 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.02367, allocations: 0.6232 MB / 268.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.722e-05/0.02373, allocations: 88.31 kB / 268.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.644e-05/0.0238, allocations: 30.27 kB / 269 MB, free: 5 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.02385, allocations: 20.5 kB / 269 MB, free: 4.977 MB / 250.7 MB Notification: Performance of SimCode: time 1.272e-06/0.02385, allocations: 0 / 269 MB, free: 4.977 MB / 250.7 MB Notification: Performance of Templates: time 0.005493/0.02934, allocations: 2.939 MB / 271.9 MB, free: 2.066 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 -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: 3.1383148299064487]