Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 114.8 kB / 18.42 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.00158, allocations: 212.5 kB / 19.37 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 59.88 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1363, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.007388/0.1438, allocations: 2.883 MB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002791/0.1466, allocations: 0.7595 MB / 362.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005133/0.1472, allocations: 4 kB / 362.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.1476, allocations: 55.5 kB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.1482, allocations: 91.12 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007652/0.149, allocations: 111.8 kB / 362.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008491/0.1498, allocations: 366.4 kB / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003732/0.1502, allocations: 123.2 kB / 363.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004625/0.1507, allocations: 131.5 kB / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.1512, allocations: 159.3 kB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.1513, allocations: 35.94 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.1514, allocations: 28 kB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1515, allocations: 75.75 kB / 363.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002684/0.1518, allocations: 155.3 kB / 363.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006153/0.1524, allocations: 366.7 kB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1524, allocations: 4 kB / 364.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1524, allocations: 0 / 364.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.585e-05/0.1525, allocations: 0 / 364.2 MB, free: 8.027 MB / 302.1 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.001608/0.1541, allocations: 0.6018 MB / 364.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.1542, allocations: 12.03 kB / 364.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.1543, allocations: 40.56 kB / 364.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006795/0.155, allocations: 268.3 kB / 365.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.1551, allocations: 88.55 kB / 365.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.1552, allocations: 24.38 kB / 365.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/0.1558, allocations: 301.9 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1559, allocations: 7.984 kB / 365.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.1559, allocations: 15.94 kB / 365.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.1559, allocations: 8 kB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.1563, allocations: 186.2 kB / 365.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.1587, allocations: 1.119 MB / 366.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.1591, allocations: 162.6 kB / 367 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.1593, allocations: 76.83 kB / 367.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1593, allocations: 4 kB / 367.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.1596, allocations: 161.3 kB / 367.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.542e-06/0.1596, allocations: 0 / 367.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001186/0.1608, allocations: 383.2 kB / 367.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.943e-05/0.1609, allocations: 106.8 kB / 367.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.1613, allocations: 228.9 kB / 368 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.1614, allocations: 37.7 kB / 368 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.1615, allocations: 172.2 kB / 368.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.584e-05/0.1616, allocations: 78.92 kB / 368.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1617, allocations: 53.7 kB / 368.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.162, allocations: 338.8 kB / 368.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.1621, allocations: 67.97 kB / 368.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003035/0.1624, allocations: 141.7 kB / 368.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.1628, allocations: 193.8 kB / 369 MB, free: 2.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1628, allocations: 0 / 369 MB, free: 2.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005123/0.1633, allocations: 268.4 kB / 369.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1633, allocations: 8 kB / 369.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1633, allocations: 224 / 369.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003119/0.1637, allocations: 60.81 kB / 369.4 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.1639, allocations: 47.92 kB / 369.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.1658, allocations: 1.568 MB / 371 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/0.1661, allocations: 43.86 kB / 371 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.1661, allocations: 12 kB / 371 MB, free: 0.6953 MB / 302.1 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.0002096/0.1663, allocations: 150.8 kB / 371.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.027e-05/0.1664, allocations: 23.72 kB / 371.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.655e-05/0.1665, allocations: 30.17 kB / 371.2 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.1665, allocations: 0 / 371.2 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1665, allocations: 8 kB / 371.2 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1665, allocations: 0 / 371.2 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004109/0.1669, allocations: 313.4 kB / 371.5 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.167, allocations: 4 kB / 371.5 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.1671, allocations: 35.91 kB / 371.6 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002085/0.1673, allocations: 56.77 kB / 371.6 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.1674, allocations: 7.984 kB / 371.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2385/0.4059, allocations: 1.406 MB / 373 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.406, allocations: 2.797 kB / 373.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007026/0.4067, allocations: 326.5 kB / 373.4 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.4068, allocations: 118.5 kB / 373.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.4068, allocations: 9.422 kB / 373.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.407, allocations: 22.62 kB / 373.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.472e-05/0.4071, allocations: 30.05 kB / 373.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.4071, allocations: 6.172 kB / 373.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001427/0.4073, allocations: 164.3 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4073, allocations: 0 / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.4077, allocations: 80.2 kB / 373.8 MB, free: 18.73 MB / 302.1 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.0001318/0.4078, allocations: 102.9 kB / 373.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005431/0.4084, allocations: 286.7 kB / 374.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4084, allocations: 0.625 kB / 374.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.4087, allocations: 197.7 kB / 374.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.409, allocations: 41.02 kB / 374.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.4105, allocations: 0.6532 MB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.4107, allocations: 0.758 MB / 375.8 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.024e-05/0.4108, allocations: 20.02 kB / 375.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.4108, allocations: 20.38 kB / 375.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4108, allocations: 5.062 kB / 375.9 MB, free: 17.46 MB / 302.1 MB Notification: Performance of Templates: time 0.007237/0.4181, allocations: 3.056 MB / 378.9 MB, free: 17.29 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches