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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,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=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000817/0.0008169, allocations: 81.75 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.891e-05/2.892e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3266/0.427, allocations: 78.65 MB / 448.7 MB, free: 14.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4272, allocations: 75.33 kB / 448.7 MB, free: 14.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01592/0.4431, allocations: 6.11 MB / 454.9 MB, free: 9.406 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4432, allocations: 0 / 454.9 MB, free: 9.406 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.4432, allocations: 8 kB / 454.9 MB, free: 9.398 MB / 330.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.0009235/0.4441, allocations: 0.5736 MB / 455.4 MB, free: 8.805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.4442, allocations: 8.031 kB / 455.4 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.664e-05/0.4443, allocations: 39.53 kB / 455.5 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.4446, allocations: 266.5 kB / 455.7 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.135e-05/0.4448, allocations: 79.5 kB / 455.8 MB, free: 8.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.4448, allocations: 35.62 kB / 455.9 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/0.4454, allocations: 320.7 kB / 456.2 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.4454, allocations: 4.219 kB / 456.2 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.4454, allocations: 7.75 kB / 456.2 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.4454, allocations: 11.94 kB / 456.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003357/0.4458, allocations: 212 kB / 456.4 MB, free: 7.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.4475, allocations: 1.391 MB / 457.8 MB, free: 6.691 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.4478, allocations: 160.5 kB / 457.9 MB, free: 6.574 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.448, allocations: 77.3 kB / 458 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.448, allocations: 11.94 kB / 458 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/0.4483, allocations: 153.2 kB / 458.2 MB, free: 6.371 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.4483, allocations: 0 / 458.2 MB, free: 6.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006057/0.4489, allocations: 220.6 kB / 458.4 MB, free: 6.188 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/0.449, allocations: 110.8 kB / 458.5 MB, free: 6.055 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.4493, allocations: 230.7 kB / 458.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.4493, allocations: 28.33 kB / 458.8 MB, free: 5.832 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.4494, allocations: 207.8 kB / 459 MB, free: 5.629 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.4495, allocations: 67 kB / 459 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.4495, allocations: 4 kB / 459 MB, free: 5.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4496, allocations: 343.1 kB / 459.4 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.4498, allocations: 72 kB / 459.4 MB, free: 5.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.4499, allocations: 150.9 kB / 459.6 MB, free: 4.957 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.4501, allocations: 86.03 kB / 459.7 MB, free: 4.875 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.4501, allocations: 0 / 459.7 MB, free: 4.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005613/0.4507, allocations: 312.6 kB / 460 MB, free: 4.562 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4507, allocations: 8 kB / 460 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4507, allocations: 0 / 460 MB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.451, allocations: 61.03 kB / 460 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.4512, allocations: 63.84 kB / 460.1 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.4524, allocations: 1.405 MB / 461.5 MB, free: 2.887 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.4527, allocations: 47.77 kB / 461.6 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.4527, allocations: 19.94 kB / 461.6 MB, free: 2.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 9.227e-05/0.4528, allocations: 124.3 kB / 461.7 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.4528, allocations: 27.72 kB / 461.7 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.135e-05/0.4529, allocations: 29.95 kB / 461.8 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4529, allocations: 7.953 kB / 461.8 MB, free: 2.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.4529, allocations: 4 kB / 461.8 MB, free: 2.621 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.4529, allocations: 7.984 kB / 461.8 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.4532, allocations: 337.3 kB / 462.1 MB, free: 2.234 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4532, allocations: 0 / 462.1 MB, free: 2.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.4534, allocations: 35.97 kB / 462.1 MB, free: 2.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.4536, allocations: 56.77 kB / 462.2 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.4536, allocations: 7.984 kB / 462.2 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009261/0.4545, allocations: 1.323 MB / 463.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4546, allocations: 0 / 463.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005689/0.4551, allocations: 325.5 kB / 463.8 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.827e-05/0.4552, allocations: 124.8 kB / 464 MB, free: 204 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.4553, allocations: 7.984 kB / 464 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.4555, allocations: 23.94 kB / 464 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/0.4556, allocations: 27.95 kB / 464 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.4556, allocations: 8 kB / 464 MB, free: 136 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001597/0.4557, allocations: 183.1 kB / 464.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4558, allocations: 4 kB / 464.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003587/0.4561, allocations: 87.78 kB / 464.3 MB, free: 15.87 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001697/0.4563, allocations: 115.2 kB / 464.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004781/0.4568, allocations: 290.4 kB / 464.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4568, allocations: 0 / 464.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.457, allocations: 199.4 kB / 464.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.4573, allocations: 34.17 kB / 464.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.4584, allocations: 0.4968 MB / 465.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.4587, allocations: 0.7755 MB / 466.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.4589, allocations: 26.06 kB / 466.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.725e-05/0.4589, allocations: 23.44 kB / 466.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4589, allocations: 0 / 466.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of Templates: time 0.00598/0.4649, allocations: 2.792 MB / 469 MB, free: 11.06 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches