Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 112.9 kB / 18.45 MB, free: 4.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 216.3 kB / 21.41 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.769/1.769, allocations: 207.6 MB / 231.8 MB, free: 4.191 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 59.91 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1306, allocations: 49.12 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005594/0.1362, allocations: 3.107 MB / 394.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1382, allocations: 0.7989 MB / 395.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004281/0.1386, allocations: 4 kB / 395.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.1389, allocations: 63.42 kB / 395.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.1393, allocations: 99.05 kB / 395.5 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.1398, allocations: 111.8 kB / 395.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006318/0.1404, allocations: 422 kB / 396 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.1406, allocations: 103.7 kB / 396.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.1409, allocations: 167.5 kB / 396.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.1411, allocations: 171.2 kB / 396.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.625e-05/0.1412, allocations: 36 kB / 396.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.238e-05/0.1413, allocations: 39.94 kB / 396.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.65e-05/0.1414, allocations: 87.62 kB / 396.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1416, allocations: 187.1 kB / 396.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.1421, allocations: 418.3 kB / 397.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.328e-05/0.1421, allocations: 4 kB / 397.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1421, allocations: 0 / 397.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.1421, allocations: 0 / 397.2 MB, free: 2.902 MB / 318.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.001282/0.1434, allocations: 0.6545 MB / 397.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1435, allocations: 8.031 kB / 397.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.223e-05/0.1436, allocations: 70.72 kB / 397.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.1437, allocations: 44.66 kB / 398 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/0.1441, allocations: 281.4 kB / 398.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.1442, allocations: 84.62 kB / 398.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.1443, allocations: 32.38 kB / 398.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007544/0.1451, allocations: 346.6 kB / 398.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1451, allocations: 0 / 398.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.1451, allocations: 12 kB / 398.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1451, allocations: 8 kB / 398.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004712/0.1456, allocations: 226.5 kB / 398.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.1478, allocations: 1.349 MB / 400.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1481, allocations: 170.5 kB / 400.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.1483, allocations: 80.83 kB / 400.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.1483, allocations: 4 kB / 400.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003381/0.1487, allocations: 157.8 kB / 400.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.1487, allocations: 0 / 400.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001276/0.15, allocations: 403.6 kB / 401.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.909e-05/0.1501, allocations: 106.8 kB / 401.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.1504, allocations: 266.6 kB / 401.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1504, allocations: 33.7 kB / 401.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.1506, allocations: 200.3 kB / 401.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.365e-05/0.1507, allocations: 83.34 kB / 401.8 MB, free: 14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1508, allocations: 69.97 kB / 401.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.151, allocations: 330.8 kB / 402.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.1511, allocations: 76.62 kB / 402.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.1514, allocations: 181.5 kB / 402.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004069/0.1518, allocations: 240.5 kB / 402.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1518, allocations: 0 / 402.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000797/0.1526, allocations: 347.8 kB / 403 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1527, allocations: 4 kB / 403 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1527, allocations: 7.938 kB / 403 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003103/0.153, allocations: 52.81 kB / 403 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.1533, allocations: 68.06 kB / 403.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.155, allocations: 1.576 MB / 404.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.1553, allocations: 39.77 kB / 404.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.297e-05/0.1554, allocations: 19.98 kB / 404.7 MB, free: 10.78 MB / 334.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.0002619/0.1556, allocations: 157.7 kB / 404.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/0.1557, allocations: 35.73 kB / 404.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.1558, allocations: 26.19 kB / 405 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1558, allocations: 0 / 405 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1558, allocations: 3.938 kB / 405 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1558, allocations: 3.984 kB / 405 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.1562, allocations: 337.4 kB / 405.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1562, allocations: 0 / 405.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002093/0.1564, allocations: 39.97 kB / 405.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/0.1567, allocations: 56.75 kB / 405.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.1567, allocations: 8 kB / 405.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.1582, allocations: 1.414 MB / 406.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1582, allocations: 0 / 406.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008221/0.159, allocations: 358.3 kB / 407.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.1591, allocations: 112.9 kB / 407.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.1592, allocations: 4 kB / 407.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.1593, allocations: 19.98 kB / 407.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.816e-05/0.1594, allocations: 35.95 kB / 407.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.1594, allocations: 4 kB / 407.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.1597, allocations: 186 kB / 407.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1597, allocations: 4 kB / 407.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004481/0.1601, allocations: 91.78 kB / 407.6 MB, free: 7.672 MB / 334.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.001205/0.1613, allocations: 0.8901 MB / 408.5 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007114/0.162, allocations: 302.9 kB / 408.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.162, allocations: 4.188 kB / 408.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.1624, allocations: 194.6 kB / 409 MB, free: 6.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.1627, allocations: 40.42 kB / 409 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.1676, allocations: 2.897 MB / 411.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.1681, allocations: 0.7713 MB / 412.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.1683, allocations: 34.27 kB / 412.7 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.1684, allocations: 91.41 kB / 412.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1684, allocations: 0 / 412.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0403/0.2087, allocations: 6.078 MB / 418.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.17, allocations: 7.984 kB / 418.9 MB, free: 12.08 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.763762682996457]