Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001732/0.001732, allocations: 104.4 kB / 16.62 MB, free: 6.809 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.002046/0.002046, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.442/1.442, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001623, allocations: 52.27 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1211, allocations: 49.45 MB / 349.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005249/0.1264, allocations: 3.169 MB / 352.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1283, allocations: 0.7401 MB / 353.6 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003731/0.1287, allocations: 8 kB / 353.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.1289, allocations: 47.61 kB / 353.7 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003722/0.1293, allocations: 87.23 kB / 353.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.1298, allocations: 99.86 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000592/0.1304, allocations: 410.2 kB / 354.2 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003509/0.1308, allocations: 147.7 kB / 354.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.1311, allocations: 151.4 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.1315, allocations: 179.2 kB / 354.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.033e-05/0.1316, allocations: 32 kB / 354.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.1317, allocations: 36 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.395e-05/0.1318, allocations: 75.77 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.132, allocations: 191.1 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.1325, allocations: 426.7 kB / 355.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1325, allocations: 0 / 355.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1325, allocations: 0 / 355.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.1325, allocations: 0 / 355.4 MB, free: 14.87 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.001226/0.1338, allocations: 0.6548 MB / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.1338, allocations: 12.03 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.157e-05/0.1339, allocations: 66.72 kB / 356.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.134, allocations: 44.47 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.1344, allocations: 281.2 kB / 356.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.721e-05/0.1345, allocations: 76.62 kB / 356.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.1346, allocations: 32.38 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006205/0.1352, allocations: 342.6 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1353, allocations: 0 / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.1353, allocations: 19.98 kB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1353, allocations: 12 kB / 357 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.1358, allocations: 218.5 kB / 357.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1379, allocations: 1.348 MB / 358.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.1383, allocations: 178.5 kB / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.1384, allocations: 84.83 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.1385, allocations: 7.984 kB / 358.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004052/0.1389, allocations: 161.8 kB / 359 MB, free: 11.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.1389, allocations: 0 / 359 MB, free: 11.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001165/0.1401, allocations: 400.5 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.1402, allocations: 110.8 kB / 359.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.1404, allocations: 258.7 kB / 359.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.1405, allocations: 29.7 kB / 359.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.1406, allocations: 203.8 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.6e-05/0.1407, allocations: 67.09 kB / 360 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1408, allocations: 73.86 kB / 360.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1409, allocations: 334.8 kB / 360.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1411, allocations: 84.56 kB / 360.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1413, allocations: 171.5 kB / 360.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.1417, allocations: 251.5 kB / 360.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1417, allocations: 0 / 360.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007003/0.1424, allocations: 340.4 kB / 361.2 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1424, allocations: 8 kB / 361.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1424, allocations: 4 kB / 361.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003045/0.1428, allocations: 52.97 kB / 361.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.143, allocations: 63.91 kB / 361.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.1446, allocations: 1.579 MB / 362.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.1448, allocations: 43.67 kB / 363 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.1449, allocations: 16.09 kB / 363 MB, free: 6.754 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.0001862/0.1451, allocations: 153.7 kB / 363.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.1451, allocations: 39.55 kB / 363.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.097e-05/0.1452, allocations: 22.19 kB / 363.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1452, allocations: 4 kB / 363.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1452, allocations: 3.984 kB / 363.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1452, allocations: 0 / 363.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.1456, allocations: 329.5 kB / 363.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1456, allocations: 4 kB / 363.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/0.1458, allocations: 39.97 kB / 363.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002029/0.146, allocations: 52.75 kB / 363.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.1461, allocations: 4 kB / 363.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.1474, allocations: 1.426 MB / 365.1 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1474, allocations: 4.031 kB / 365.1 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007655/0.1482, allocations: 346.8 kB / 365.4 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.1483, allocations: 120.9 kB / 365.5 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.1484, allocations: 8 kB / 365.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.1486, allocations: 19.98 kB / 365.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1487, allocations: 31.89 kB / 365.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.1487, allocations: 4 kB / 365.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1489, allocations: 186 kB / 365.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1489, allocations: 3.938 kB / 365.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004261/0.1494, allocations: 87.75 kB / 365.8 MB, free: 3.656 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.001077/0.1505, allocations: 0.8957 MB / 366.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006567/0.1511, allocations: 325.6 kB / 367.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1511, allocations: 0 / 367.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000321/0.1515, allocations: 194.6 kB / 367.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.1518, allocations: 44.97 kB / 367.3 MB, free: 2.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1809/0.3327, allocations: 2.998 MB / 370.3 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.333, allocations: 0.772 MB / 371.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.3331, allocations: 26.98 kB / 371.1 MB, free: 23.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.3333, allocations: 96.23 kB / 371.2 MB, free: 23.41 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3333, allocations: 2.625 kB / 371.2 MB, free: 23.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.3568, allocations: 5.705 MB / 376.9 MB, free: 23.03 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.357, allocations: 247.4 kB / 377.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.392, allocations: 4.328 kB / 377.1 MB, free: 22.77 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches