Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 105.9 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002588/0.002588, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 52.23 kB / 300.1 MB, free: 6.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1268, allocations: 49.44 MB / 349.5 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00513/0.132, allocations: 2.9 MB / 352.4 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.1339, allocations: 0.7245 MB / 353.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000385/0.1343, allocations: 4 kB / 353.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1347, allocations: 39.69 kB / 353.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003877/0.1351, allocations: 71.39 kB / 353.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.1355, allocations: 95.78 kB / 353.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006009/0.1361, allocations: 354.3 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.1364, allocations: 107.9 kB / 353.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.1366, allocations: 131.5 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002476/0.1369, allocations: 143.3 kB / 354.1 MB, free: 136 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.1369, allocations: 20 kB / 354.1 MB, free: 116 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.137, allocations: 20 kB / 354.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.1371, allocations: 67.75 kB / 354.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.1373, allocations: 151.2 kB / 354.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.1377, allocations: 343 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.908e-06/0.1378, allocations: 0 / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1378, allocations: 3.938 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.1378, allocations: 3.938 kB / 354.7 MB, free: 15.54 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.001394/0.1392, allocations: 0.6095 MB / 355.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1393, allocations: 12.03 kB / 355.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.1394, allocations: 62.73 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.1395, allocations: 36.55 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.1398, allocations: 268.3 kB / 355.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.871e-05/0.1399, allocations: 76.62 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.14, allocations: 28.38 kB / 355.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.1405, allocations: 297.7 kB / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1405, allocations: 0 / 356 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.1406, allocations: 16 kB / 356 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.1406, allocations: 4 kB / 356 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004426/0.1411, allocations: 194.1 kB / 356.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.143, allocations: 1.127 MB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.1433, allocations: 164.9 kB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.1435, allocations: 72.83 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.1435, allocations: 12 kB / 357.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003625/0.1439, allocations: 153.8 kB / 357.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.1439, allocations: 0 / 357.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001145/0.145, allocations: 388.6 kB / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.1452, allocations: 110.8 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.1454, allocations: 224.9 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.1455, allocations: 29.7 kB / 358.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1456, allocations: 172.2 kB / 358.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/0.1457, allocations: 78.98 kB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.1458, allocations: 57.7 kB / 358.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.146, allocations: 334.8 kB / 359.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.1461, allocations: 67.97 kB / 359.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.1463, allocations: 144.6 kB / 359.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.1466, allocations: 192.2 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1467, allocations: 4 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004658/0.1471, allocations: 276.4 kB / 359.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.1472, allocations: 8 kB / 359.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1472, allocations: 0 / 359.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/0.1475, allocations: 61.03 kB / 359.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.1477, allocations: 51.91 kB / 359.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.1493, allocations: 1.401 MB / 361.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.1495, allocations: 39.7 kB / 361.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.1495, allocations: 12 kB / 361.4 MB, free: 8.301 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.0001506/0.1497, allocations: 145.9 kB / 361.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.1497, allocations: 31.59 kB / 361.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.1498, allocations: 34.11 kB / 361.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.1498, allocations: 0 / 361.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1498, allocations: 4 kB / 361.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1498, allocations: 0 / 361.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.1501, allocations: 313.5 kB / 361.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1501, allocations: 3.938 kB / 361.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.1503, allocations: 27.98 kB / 361.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/0.1505, allocations: 56.81 kB / 362 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.1505, allocations: 4 kB / 362 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.1517, allocations: 1.331 MB / 363.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1517, allocations: 0 / 363.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006478/0.1524, allocations: 331.3 kB / 363.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.1525, allocations: 116.7 kB / 363.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.1525, allocations: 0 / 363.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.1527, allocations: 19.98 kB / 363.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1528, allocations: 35.88 kB / 363.8 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1528, allocations: 4 kB / 363.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.153, allocations: 168.5 kB / 364 MB, free: 5.465 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.153, allocations: 0 / 364 MB, free: 5.465 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.1534, allocations: 75.84 kB / 364 MB, free: 5.391 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.0009357/0.1543, allocations: 0.8721 MB / 364.9 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005289/0.1549, allocations: 289.2 kB / 365.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1549, allocations: 0 / 365.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.1552, allocations: 190.6 kB / 365.4 MB, free: 4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.1555, allocations: 40.86 kB / 365.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/0.1591, allocations: 2.716 MB / 368.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.1594, allocations: 0.7597 MB / 368.9 MB, free: 336 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.1596, allocations: 18.3 kB / 368.9 MB, free: 320 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.1597, allocations: 83.41 kB / 369 MB, free: 236 kB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1597, allocations: 4 kB / 369 MB, free: 232 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1899/0.3496, allocations: 5.132 MB / 374.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/0.3498, allocations: 227.3 kB / 374.3 MB, free: 24.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.407, allocations: 0 / 374.3 MB, free: 24.41 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches