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.001473/0.001473, allocations: 105.4 kB / 16.92 MB, free: 5.754 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.002448/0.002449, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.476/1.476, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001368, allocations: 59.5 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1165, allocations: 49.44 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005453/0.122, allocations: 2.863 MB / 353 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1241, allocations: 0.7284 MB / 353.8 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004325/0.1246, allocations: 7.938 kB / 353.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.1249, allocations: 47.52 kB / 353.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004643/0.1254, allocations: 87.19 kB / 353.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000585/0.126, allocations: 107.8 kB / 354 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006994/0.1267, allocations: 370.3 kB / 354.4 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.1271, allocations: 115.2 kB / 354.5 MB, free: 16 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003319/0.1274, allocations: 147.4 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.1277, allocations: 151.4 kB / 354.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.074e-05/0.1278, allocations: 32 kB / 354.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.549e-05/0.1279, allocations: 28 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.729e-05/0.128, allocations: 71.77 kB / 354.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002055/0.1282, allocations: 171.2 kB / 355.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.1286, allocations: 355 kB / 355.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1286, allocations: 0 / 355.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1286, allocations: 0 / 355.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.1286, allocations: 0 / 355.4 MB, free: 15.08 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.00127/0.1299, allocations: 0.5979 MB / 356 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.13, allocations: 12.03 kB / 356 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.1301, allocations: 70.59 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.21e-05/0.1302, allocations: 40.56 kB / 356.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.1307, allocations: 260.8 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.1308, allocations: 84.61 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.314e-05/0.1308, allocations: 28.38 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.1314, allocations: 301.6 kB / 356.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.1314, allocations: 0 / 356.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.1315, allocations: 16 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1315, allocations: 8 kB / 356.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003783/0.1319, allocations: 186.2 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.1338, allocations: 1.139 MB / 358.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.1342, allocations: 154.6 kB / 358.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1343, allocations: 80.83 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.1343, allocations: 0 / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.1347, allocations: 161.8 kB / 358.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.943e-06/0.1347, allocations: 4 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.1358, allocations: 384.8 kB / 358.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.1358, allocations: 106.8 kB / 359 MB, free: 11.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1361, allocations: 224.9 kB / 359.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.1361, allocations: 33.7 kB / 359.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.1364, allocations: 180.2 kB / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.143e-05/0.1364, allocations: 67 kB / 359.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.1366, allocations: 53.7 kB / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1367, allocations: 346.8 kB / 359.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.1369, allocations: 63.97 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.1371, allocations: 140.6 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.1374, allocations: 190 kB / 360.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1374, allocations: 0 / 360.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004813/0.1379, allocations: 280.3 kB / 360.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1379, allocations: 4 kB / 360.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1379, allocations: 3.938 kB / 360.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.1382, allocations: 61.03 kB / 360.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.1385, allocations: 51.91 kB / 360.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.14, allocations: 1.564 MB / 362.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1402, allocations: 39.67 kB / 362.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1403, allocations: 12 kB / 362.3 MB, free: 7.672 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.0001693/0.1405, allocations: 157.7 kB / 362.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.1405, allocations: 23.72 kB / 362.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.792e-05/0.1406, allocations: 30.17 kB / 362.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1406, allocations: 4 kB / 362.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.1406, allocations: 0 / 362.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1406, allocations: 7.922 kB / 362.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.1409, allocations: 317.4 kB / 362.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.141, allocations: 0 / 362.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.1411, allocations: 43.91 kB / 362.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.1414, allocations: 48.81 kB / 362.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.1414, allocations: 8 kB / 362.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.1427, allocations: 1.418 MB / 364.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1427, allocations: 0 / 364.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006645/0.1434, allocations: 318.9 kB / 364.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1435, allocations: 116.7 kB / 364.7 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.1436, allocations: 8 kB / 364.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.1438, allocations: 20.11 kB / 364.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.553e-05/0.1439, allocations: 31.89 kB / 364.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.1439, allocations: 15.98 kB / 364.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001627/0.1441, allocations: 156.5 kB / 365 MB, free: 4.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1441, allocations: 0 / 365 MB, free: 4.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003847/0.1445, allocations: 75.84 kB / 365 MB, free: 4.66 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.001094/0.1456, allocations: 0.8788 MB / 365.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005782/0.1462, allocations: 286.9 kB / 366.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.1462, allocations: 4.062 kB / 366.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.1465, allocations: 201.7 kB / 366.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1468, allocations: 43.67 kB / 366.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.1507, allocations: 2.607 MB / 369.1 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1719/0.3226, allocations: 0.7575 MB / 369.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.3229, allocations: 22.25 kB / 369.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.323, allocations: 84.08 kB / 369.9 MB, free: 25 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.323, allocations: 0 / 369.9 MB, free: 25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3543, allocations: 5.501 MB / 375.4 MB, free: 24.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.08, allocations: 20 kB / 375.4 MB, free: 24.5 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