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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002372/0.002381, allocations: 109.7 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002862/0.002862, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.98 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1362, allocations: 50.52 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004742/0.141, allocations: 2.937 MB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.1428, allocations: 0.7556 MB / 360.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003075/0.1431, allocations: 8 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.1434, allocations: 43.69 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003152/0.1437, allocations: 71.38 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.1442, allocations: 91.86 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005213/0.1447, allocations: 366.4 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.145, allocations: 127.1 kB / 361.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.1452, allocations: 131.5 kB / 361.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002676/0.1455, allocations: 159.3 kB / 361.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.19e-05/0.1456, allocations: 32 kB / 361.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.445e-05/0.1456, allocations: 28 kB / 361.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.189e-05/0.1457, allocations: 71.77 kB / 361.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1459, allocations: 171.2 kB / 362 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003903/0.1463, allocations: 367 kB / 362.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1463, allocations: 0 / 362.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1463, allocations: 0 / 362.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.1464, allocations: 0 / 362.4 MB, free: 8.965 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.00118/0.1475, allocations: 0.598 MB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.1476, allocations: 12.02 kB / 363 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.697e-05/0.1477, allocations: 62.73 kB / 363.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.086e-05/0.1478, allocations: 36.56 kB / 363.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1482, allocations: 268.3 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-05/0.1483, allocations: 72.62 kB / 363.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.1483, allocations: 32.38 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.1489, allocations: 301.7 kB / 363.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.1489, allocations: 0 / 363.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.1489, allocations: 12 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1489, allocations: 8 kB / 363.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.1493, allocations: 194.1 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.1512, allocations: 1.119 MB / 365.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.1515, allocations: 162.5 kB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.1517, allocations: 84.77 kB / 365.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.1517, allocations: 0 / 365.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003446/0.1521, allocations: 164 kB / 365.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.1521, allocations: 4 kB / 365.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.1532, allocations: 375.2 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.1533, allocations: 110.8 kB / 366 MB, free: 5.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.1535, allocations: 232.9 kB / 366.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1535, allocations: 29.7 kB / 366.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1537, allocations: 172.2 kB / 366.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.407e-05/0.1538, allocations: 74.98 kB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.1539, allocations: 53.7 kB / 366.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.154, allocations: 338.8 kB / 366.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.1542, allocations: 63.97 kB / 366.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.1544, allocations: 148.7 kB / 367.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.1547, allocations: 190 kB / 367.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.1547, allocations: 4 kB / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004557/0.1552, allocations: 268.4 kB / 367.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1552, allocations: 4.219 kB / 367.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1552, allocations: 8 kB / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.1555, allocations: 52.75 kB / 367.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.1557, allocations: 55.91 kB / 367.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.1573, allocations: 1.576 MB / 369.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.1575, allocations: 39.67 kB / 369.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.1575, allocations: 12 kB / 369.3 MB, free: 1.57 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.0001604/0.1577, allocations: 153.4 kB / 369.4 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.1578, allocations: 23.72 kB / 369.4 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.239e-05/0.1578, allocations: 30.23 kB / 369.5 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1578, allocations: 4 kB / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1578, allocations: 0 / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1579, allocations: 0 / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003405/0.1582, allocations: 321.4 kB / 369.8 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1582, allocations: 0 / 369.8 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.1584, allocations: 31.98 kB / 369.8 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.1586, allocations: 52.81 kB / 369.9 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.1586, allocations: 4 kB / 369.9 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2007/0.3594, allocations: 1.416 MB / 371.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3594, allocations: 3.828 kB / 371.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007732/0.3602, allocations: 333.3 kB / 371.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3603, allocations: 112.1 kB / 371.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.3604, allocations: 2.5 kB / 371.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.3606, allocations: 17.12 kB / 371.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.3607, allocations: 33.98 kB / 371.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.3607, allocations: 5.703 kB / 371.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3609, allocations: 164.9 kB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.032e-06/0.3609, allocations: 0.8125 kB / 371.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004315/0.3613, allocations: 83.86 kB / 372 MB, free: 19.05 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.0009462/0.3623, allocations: 0.8687 MB / 372.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006599/0.363, allocations: 300.3 kB / 373.2 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.363, allocations: 1 kB / 373.2 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002961/0.3633, allocations: 196.3 kB / 373.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.3636, allocations: 33.19 kB / 373.4 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.3674, allocations: 2.706 MB / 376.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.3677, allocations: 0.7626 MB / 376.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.3678, allocations: 26.38 kB / 376.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.368, allocations: 84.56 kB / 377 MB, free: 15.81 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.368, allocations: 0 / 377 MB, free: 15.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.398, allocations: 5.335 MB / 382.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/0.3983, allocations: 236.7 kB / 382.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.472, allocations: 0.9844 kB / 382.6 MB, free: 15.06 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > 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