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.0008833/0.0008832, allocations: 99.22 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009831/0.0009828, allocations: 191.6 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002301/0.0002302, allocations: 8 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1253, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003011/0.1284, allocations: 2.689 MB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1296, allocations: 0.7871 MB / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.1297, allocations: 8 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1299, allocations: 43.67 kB / 362.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.13, allocations: 87.23 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.1304, allocations: 95.83 kB / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.1307, allocations: 382.2 kB / 362.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.1309, allocations: 107 kB / 362.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.1312, allocations: 143.5 kB / 363 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.1314, allocations: 139.4 kB / 363.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.1314, allocations: 20 kB / 363.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.446e-05/0.1315, allocations: 23.98 kB / 363.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.1316, allocations: 63.75 kB / 363.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.854e-05/0.1317, allocations: 93.52 kB / 363.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002914/0.132, allocations: 311.3 kB / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.132, allocations: 0 / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.132, allocations: 0 / 363.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.132, allocations: 0 / 363.6 MB, free: 8.434 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.0009369/0.1329, allocations: 0.6077 MB / 364.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.133, allocations: 8.031 kB / 364.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.1332, allocations: 55.52 kB / 364.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.1335, allocations: 284 kB / 364.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.422e-05/0.1336, allocations: 72.06 kB / 364.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.1336, allocations: 39.95 kB / 364.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000531/0.1342, allocations: 330.8 kB / 365 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1342, allocations: 4 kB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.1342, allocations: 12 kB / 365 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.1342, allocations: 8 kB / 365 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004036/0.1347, allocations: 226.5 kB / 365.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.1364, allocations: 1.383 MB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.1368, allocations: 178.5 kB / 366.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1369, allocations: 85.17 kB / 366.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.137, allocations: 7.953 kB / 366.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.1373, allocations: 162.6 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.965e-06/0.1373, allocations: 3.984 kB / 367 MB, free: 4.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00105/0.1383, allocations: 428.7 kB / 367.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.1384, allocations: 106.8 kB / 367.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.1387, allocations: 258.7 kB / 367.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.1387, allocations: 29.7 kB / 367.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.1388, allocations: 207.8 kB / 368 MB, free: 3.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.048e-05/0.1389, allocations: 75.08 kB / 368.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.1389, allocations: 8 kB / 368.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.139, allocations: 334.8 kB / 368.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.1392, allocations: 76.56 kB / 368.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.1394, allocations: 185.5 kB / 368.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.1396, allocations: 89.2 kB / 368.8 MB, free: 2.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1396, allocations: 3.953 kB / 368.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006215/0.1402, allocations: 346.4 kB / 369.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1403, allocations: 4 kB / 369.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1403, allocations: 7.938 kB / 369.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.1405, allocations: 60.97 kB / 369.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.1408, allocations: 67.91 kB / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.142, allocations: 1.401 MB / 370.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.1422, allocations: 59.73 kB / 370.7 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.1422, allocations: 12 kB / 370.7 MB, free: 0.7695 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (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 0.0001424/0.1424, allocations: 153.7 kB / 370.9 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.1424, allocations: 23.72 kB / 370.9 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.763e-05/0.1425, allocations: 30.17 kB / 370.9 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1425, allocations: 4 kB / 370.9 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1425, allocations: 4 kB / 371 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1425, allocations: 0 / 371 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003008/0.1428, allocations: 341.3 kB / 371.3 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1428, allocations: 0 / 371.3 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.143, allocations: 39.92 kB / 371.3 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.1432, allocations: 56.81 kB / 371.4 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.1432, allocations: 3.984 kB / 371.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1993/0.3426, allocations: 1.31 MB / 372.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3426, allocations: 4.859 kB / 372.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008274/0.3435, allocations: 360.6 kB / 373.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.3436, allocations: 122.8 kB / 373.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.3436, allocations: 6.188 kB / 373.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.3438, allocations: 28.44 kB / 373.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3439, allocations: 29.77 kB / 373.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.3439, allocations: 5.391 kB / 373.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001792/0.3441, allocations: 186.5 kB / 373.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3441, allocations: 2.906 kB / 373.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004637/0.3446, allocations: 84.2 kB / 373.5 MB, free: 17.55 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 (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.0001358/0.3447, allocations: 110.3 kB / 373.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006115/0.3454, allocations: 316.4 kB / 373.9 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3454, allocations: 0 / 373.9 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.3456, allocations: 199.2 kB / 374.1 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.3459, allocations: 36.53 kB / 374.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.3474, allocations: 0.8464 MB / 375 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.3477, allocations: 0.771 MB / 375.8 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.3478, allocations: 25.77 kB / 375.8 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.865e-05/0.3479, allocations: 23.03 kB / 375.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3479, allocations: 0 / 375.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of Templates: time 0.007021/0.3549, allocations: 2.693 MB / 378.5 MB, free: 15.93 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