Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001194/0.001194, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001367/0.001367, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 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.9952/0.9952, allocations: 177.2 MB / 205 MB, free: 5.277 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.696e-05, allocations: 2.312 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004188/0.004215, allocations: 2.902 MB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.005476, allocations: 0.7515 MB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.005615, allocations: 4 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.005784, allocations: 59.44 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.005983, allocations: 91.12 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.006347, allocations: 107.7 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.00675, allocations: 382.2 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.006944, allocations: 79.69 kB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.007185, allocations: 211.5 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.007386, allocations: 111.7 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.007442, allocations: 28 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.343e-05/0.007496, allocations: 35.94 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.007567, allocations: 71.78 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.007707, allocations: 123.7 kB / 277.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.008044, allocations: 251 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.008046, allocations: 0 / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.008047, allocations: 0 / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.008054, allocations: 0 / 278.2 MB, free: 12.16 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.000961/0.009015, allocations: 0.6299 MB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.00906, allocations: 16.03 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.009181, allocations: 60.7 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.009555, allocations: 220.7 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.009673, allocations: 128 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/0.009729, allocations: 28.38 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.01019, allocations: 319 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.0102, allocations: 192 / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.01024, allocations: 16.12 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.01026, allocations: 8 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.01053, allocations: 119.8 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.0119, allocations: 1.091 MB / 280.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.01215, allocations: 131 kB / 280.9 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.01225, allocations: 51.67 kB / 281 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.01227, allocations: 4 kB / 281 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.0125, allocations: 199.4 kB / 281.2 MB, free: 8.914 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.0125, allocations: 0 / 281.2 MB, free: 8.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006822/0.01318, allocations: 260.5 kB / 281.4 MB, free: 8.652 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.01324, allocations: 106.8 kB / 281.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.01342, allocations: 254.7 kB / 281.8 MB, free: 8.258 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.01344, allocations: 29.7 kB / 281.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01355, allocations: 227.2 kB / 282 MB, free: 7.996 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.01361, allocations: 79.38 kB / 282.1 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.891e-05/0.0137, allocations: 67.2 kB / 282.2 MB, free: 7.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.01383, allocations: 0.5 MB / 282.7 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.387e-05/0.01393, allocations: 43.97 kB / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.01409, allocations: 197 kB / 282.9 MB, free: 7.039 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.01432, allocations: 170.8 kB / 283.1 MB, free: 6.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.01432, allocations: 0 / 283.1 MB, free: 6.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003775/0.0147, allocations: 247.3 kB / 283.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.01472, allocations: 8 kB / 283.3 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.01473, allocations: 0 / 283.3 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/0.01495, allocations: 43.64 kB / 283.4 MB, free: 6.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.01514, allocations: 56.14 kB / 283.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.01635, allocations: 1.985 MB / 285.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.01652, allocations: 35.83 kB / 285.4 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.01654, allocations: 12 kB / 285.4 MB, free: 4.328 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001337/0.01668, allocations: 180.6 kB / 285.6 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.01672, allocations: 23.91 kB / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.01676, allocations: 25.95 kB / 285.7 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.01676, allocations: 7.938 kB / 285.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.01676, allocations: 0 / 285.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.01677, allocations: 0 / 285.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.01701, allocations: 220.5 kB / 285.9 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.01701, allocations: 0 / 285.9 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.01715, allocations: 31.98 kB / 285.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001282/0.01728, allocations: 43.64 kB / 286 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.0173, allocations: 8 kB / 286 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.01844, allocations: 1.755 MB / 287.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01844, allocations: 0 / 287.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.0189, allocations: 280.5 kB / 288 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-05/0.01897, allocations: 31.78 kB / 288 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.019, allocations: 11.98 kB / 288 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.01911, allocations: 12 kB / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.0192, allocations: 27.94 kB / 288.1 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.01921, allocations: 12.09 kB / 288.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.01933, allocations: 177.4 kB / 288.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01933, allocations: 0 / 288.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005067/0.01984, allocations: 87.78 kB / 288.4 MB, free: 1.215 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001071/0.01995, allocations: 119 kB / 288.5 MB, free: 1.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004495/0.0204, allocations: 312.2 kB / 288.8 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.0204, allocations: 448 / 288.8 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.02061, allocations: 241.5 kB / 289 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.02089, allocations: 38.36 kB / 289 MB, free: 492 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1073/0.1282, allocations: 0.5776 MB / 289.6 MB, free: 25.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.404e-05/0.1283, allocations: 82.72 kB / 289.7 MB, free: 25.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.1284, allocations: 17.92 kB / 289.7 MB, free: 25.06 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.353e-05/0.1284, allocations: 23.28 kB / 289.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1284, allocations: 3.156 kB / 289.8 MB, free: 25.05 MB / 266.7 MB Notification: Performance of Templates: time 0.006347/0.1348, allocations: 2.933 MB / 292.7 MB, free: 24.9 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.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.163573550991714]