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.002217/0.002217, allocations: 104.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002867/0.002867, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.773/1.773, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 59.62 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.136, allocations: 50.54 MB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005408/0.1415, allocations: 2.878 MB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.1436, allocations: 0.7751 MB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.1438, allocations: 4 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002434/0.1441, allocations: 47.5 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.1443, allocations: 95.14 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.1448, allocations: 95.81 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.1453, allocations: 366.4 kB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.1456, allocations: 127.2 kB / 361.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.1458, allocations: 143.5 kB / 362 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000275/0.1461, allocations: 159.2 kB / 362.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.1462, allocations: 32 kB / 362.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.1463, allocations: 28 kB / 362.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1464, allocations: 67.81 kB / 362.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.1466, allocations: 167.2 kB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004914/0.1471, allocations: 359 kB / 362.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.1471, allocations: 0 / 362.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1471, allocations: 0 / 362.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.1471, allocations: 0 / 362.8 MB, free: 8.672 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.001313/0.1484, allocations: 0.6057 MB / 363.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1485, allocations: 8.031 kB / 363.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.903e-05/0.1486, allocations: 40.56 kB / 363.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004057/0.149, allocations: 264.3 kB / 363.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.1491, allocations: 80.62 kB / 363.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.1492, allocations: 28.38 kB / 363.9 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005348/0.1497, allocations: 297.9 kB / 364.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1498, allocations: 0 / 364.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.759e-05/0.1498, allocations: 12 kB / 364.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.1498, allocations: 8 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.1502, allocations: 194.1 kB / 364.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1522, allocations: 1.131 MB / 365.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/0.1526, allocations: 158.5 kB / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1527, allocations: 80.83 kB / 365.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.1528, allocations: 0 / 365.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003919/0.1532, allocations: 168.8 kB / 365.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.1532, allocations: 0 / 365.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.1543, allocations: 383.2 kB / 366.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.172e-05/0.1544, allocations: 106.8 kB / 366.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.1547, allocations: 224.9 kB / 366.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.1547, allocations: 29.7 kB / 366.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.1549, allocations: 184.2 kB / 366.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.1549, allocations: 63.02 kB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.155, allocations: 65.62 kB / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1552, allocations: 342.7 kB / 367.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.1554, allocations: 67.97 kB / 367.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.1556, allocations: 133.7 kB / 367.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.1559, allocations: 189.8 kB / 367.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.1559, allocations: 4 kB / 367.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004721/0.1564, allocations: 272.4 kB / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1564, allocations: 7.984 kB / 367.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1564, allocations: 7.938 kB / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.1567, allocations: 61.02 kB / 368 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.1569, allocations: 47.92 kB / 368 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.1585, allocations: 1.568 MB / 369.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.1588, allocations: 39.67 kB / 369.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.1588, allocations: 12 kB / 369.6 MB, free: 1.34 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.0001879/0.159, allocations: 150.9 kB / 369.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.1591, allocations: 23.72 kB / 369.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.1591, allocations: 22.19 kB / 369.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.1591, allocations: 4 kB / 369.8 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1591, allocations: 0 / 369.8 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1591, allocations: 3.984 kB / 369.8 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003609/0.1595, allocations: 325.4 kB / 370.2 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1595, allocations: 0 / 370.2 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.1597, allocations: 35.98 kB / 370.2 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/0.1599, allocations: 56.75 kB / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.1599, allocations: 0 / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2776/0.4376, allocations: 1.415 MB / 371.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4376, allocations: 2.125 kB / 371.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008301/0.4384, allocations: 331.9 kB / 372 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.4386, allocations: 112.6 kB / 372.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.4386, allocations: 5.625 kB / 372.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.4388, allocations: 19.95 kB / 372.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.4389, allocations: 28.62 kB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.439, allocations: 10.28 kB / 372.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001924/0.4392, allocations: 165.3 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4392, allocations: 3.828 kB / 372.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004801/0.4397, allocations: 85.33 kB / 372.4 MB, free: 18.88 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.0001531/0.4398, allocations: 108.3 kB / 372.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006626/0.4405, allocations: 295.4 kB / 372.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4405, allocations: 0.5 kB / 372.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002914/0.4408, allocations: 191.6 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.4412, allocations: 42.7 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.4432, allocations: 0.6617 MB / 373.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.4435, allocations: 0.7579 MB / 374.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001489/0.4437, allocations: 23.92 kB / 374.5 MB, free: 17.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.423e-05/0.4438, allocations: 24.77 kB / 374.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4438, allocations: 0 / 374.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01248/0.4563, allocations: 3.058 MB / 377.6 MB, free: 17.43 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches