Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.8 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1278, allocations: 50.54 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004715/0.1325, allocations: 3.193 MB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.1343, allocations: 0.8179 MB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.1344, allocations: 11.94 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.1347, allocations: 39.69 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.1348, allocations: 95.22 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.1352, allocations: 99.91 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000375/0.1356, allocations: 398.2 kB / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.1358, allocations: 116.3 kB / 361.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.1361, allocations: 155.4 kB / 361.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.1363, allocations: 163.2 kB / 361.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.1364, allocations: 24 kB / 361.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.069e-05/0.1365, allocations: 36 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.493e-05/0.1365, allocations: 67.69 kB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1367, allocations: 183.1 kB / 362.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.1371, allocations: 402.8 kB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1371, allocations: 0 / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1371, allocations: 4 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1371, allocations: 0 / 362.6 MB, free: 8.711 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001139/0.1383, allocations: 0.6587 MB / 363.2 MB, free: 8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1383, allocations: 12.03 kB / 363.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002196/0.1386, allocations: 48.47 kB / 363.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.1389, allocations: 289.2 kB / 363.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.939e-05/0.139, allocations: 76.62 kB / 363.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.1391, allocations: 28.38 kB / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.1396, allocations: 342.8 kB / 364 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1397, allocations: 3.938 kB / 364 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.1397, allocations: 23.94 kB / 364 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1397, allocations: 8 kB / 364 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004052/0.1401, allocations: 214.5 kB / 364.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.142, allocations: 1.368 MB / 365.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.1423, allocations: 173.1 kB / 365.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.1425, allocations: 96.75 kB / 365.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.1425, allocations: 4 kB / 365.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.1428, allocations: 153.9 kB / 366 MB, free: 4.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1428, allocations: 7.938 kB / 366 MB, free: 4.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001086/0.1439, allocations: 395.2 kB / 366.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/0.144, allocations: 110.8 kB / 366.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.1443, allocations: 258.6 kB / 366.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.1443, allocations: 33.7 kB / 366.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.1445, allocations: 203.9 kB / 367 MB, free: 3.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.61e-05/0.1446, allocations: 71.08 kB / 367.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.903e-05/0.1447, allocations: 61.94 kB / 367.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1448, allocations: 346.8 kB / 367.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.145, allocations: 76.62 kB / 367.6 MB, free: 3.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.1452, allocations: 177.5 kB / 367.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.1456, allocations: 240.3 kB / 368 MB, free: 2.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1456, allocations: 0 / 368 MB, free: 2.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006758/0.1463, allocations: 344.2 kB / 368.3 MB, free: 2.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1463, allocations: 4 kB / 368.3 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.1463, allocations: 4 kB / 368.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/0.1466, allocations: 61.09 kB / 368.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.1468, allocations: 59.91 kB / 368.4 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.1481, allocations: 1.401 MB / 369.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.1483, allocations: 47.61 kB / 369.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.1484, allocations: 16 kB / 369.9 MB, free: 0.8203 MB / 302.1 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.0001705/0.1485, allocations: 157.8 kB / 370 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.1486, allocations: 23.72 kB / 370.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.898e-05/0.1486, allocations: 34.17 kB / 370.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1486, allocations: 0 / 370.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1486, allocations: 3.938 kB / 370.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1487, allocations: 3.984 kB / 370.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.149, allocations: 337.3 kB / 370.4 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.149, allocations: 0 / 370.4 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.1492, allocations: 39.97 kB / 370.5 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001861/0.1494, allocations: 56.8 kB / 370.5 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1494, allocations: 7.938 kB / 370.5 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2255/0.3749, allocations: 1.313 MB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.375, allocations: 4.281 kB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009112/0.3759, allocations: 347.9 kB / 372.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.376, allocations: 121.2 kB / 372.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.3761, allocations: 6.844 kB / 372.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.3763, allocations: 18.84 kB / 372.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3764, allocations: 33.95 kB / 372.4 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3764, allocations: 5.672 kB / 372.4 MB, free: 18.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.3766, allocations: 184 kB / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3766, allocations: 0 / 372.6 MB, free: 18.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000477/0.3771, allocations: 95.08 kB / 372.7 MB, free: 18.81 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: 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.000149/0.3773, allocations: 107.4 kB / 372.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006882/0.378, allocations: 309 kB / 373.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.378, allocations: 0 / 373.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.3783, allocations: 203.2 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3786, allocations: 36.73 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.3803, allocations: 0.8004 MB / 374.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.3806, allocations: 0.7716 MB / 374.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.3807, allocations: 27.08 kB / 374.9 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.941e-05/0.3808, allocations: 22.14 kB / 374.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3808, allocations: 0 / 374.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of Templates: time 0.00784/0.3887, allocations: 2.812 MB / 377.7 MB, free: 17.23 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches