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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 104.5 kB / 17.59 MB, free: 5.441 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.00117/0.00117, allocations: 191.9 kB / 18.51 MB, free: 4.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 52.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1286, allocations: 46.62 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006149/0.1349, allocations: 3.096 MB / 330.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1365, allocations: 0.7798 MB / 331.3 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.1369, allocations: 8 kB / 331.3 MB, free: 480 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.1371, allocations: 71.3 kB / 331.3 MB, free: 408 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.1374, allocations: 99.05 kB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.1378, allocations: 107.8 kB / 331.5 MB, free: 200 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005748/0.1384, allocations: 418.1 kB / 331.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.1386, allocations: 135.7 kB / 332.1 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/0.139, allocations: 159.4 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.1392, allocations: 179.2 kB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.359e-05/0.1393, allocations: 32 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.897e-05/0.1394, allocations: 36 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.141e-05/0.1395, allocations: 83.75 kB / 332.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.1397, allocations: 187.1 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.1402, allocations: 414.8 kB / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1402, allocations: 0 / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1402, allocations: 0 / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1402, allocations: 0 / 333.1 MB, free: 14.58 MB / 286.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.001261/0.1415, allocations: 0.6626 MB / 333.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1415, allocations: 8.031 kB / 333.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.6e-05/0.1416, allocations: 70.72 kB / 333.9 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/0.1417, allocations: 36.56 kB / 333.9 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.1421, allocations: 277.2 kB / 334.2 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.072e-05/0.1422, allocations: 88.55 kB / 334.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.1423, allocations: 28.38 kB / 334.3 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.1428, allocations: 338.7 kB / 334.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1429, allocations: 0 / 334.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.1429, allocations: 19.98 kB / 334.7 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1429, allocations: 11.98 kB / 334.7 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.1434, allocations: 218.5 kB / 334.9 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.1453, allocations: 1.368 MB / 336.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.1457, allocations: 170.5 kB / 336.4 MB, free: 11.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.1458, allocations: 92.83 kB / 336.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1459, allocations: 4 kB / 336.5 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003643/0.1462, allocations: 149.9 kB / 336.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.1462, allocations: 0 / 336.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001156/0.1474, allocations: 407 kB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.1475, allocations: 110.8 kB / 337.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.1477, allocations: 258.6 kB / 337.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.1478, allocations: 29.7 kB / 337.4 MB, free: 9.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.1479, allocations: 207.9 kB / 337.6 MB, free: 9.742 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.148, allocations: 74.98 kB / 337.7 MB, free: 9.668 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.1481, allocations: 65.88 kB / 337.8 MB, free: 9.598 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1482, allocations: 334.8 kB / 338.1 MB, free: 9.262 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.1484, allocations: 80.61 kB / 338.2 MB, free: 9.184 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.1486, allocations: 177.5 kB / 338.4 MB, free: 8.969 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.149, allocations: 235.5 kB / 338.6 MB, free: 8.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.149, allocations: 4 kB / 338.6 MB, free: 8.699 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006746/0.1496, allocations: 339.5 kB / 338.9 MB, free: 8.359 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1497, allocations: 4.344 kB / 338.9 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.1497, allocations: 8 kB / 338.9 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.15, allocations: 52.81 kB / 339 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.1502, allocations: 71.78 kB / 339.1 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.1516, allocations: 1.583 MB / 340.6 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.1518, allocations: 39.67 kB / 340.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.1519, allocations: 12 kB / 340.7 MB, free: 6.449 MB / 286.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.0001453/0.152, allocations: 153.7 kB / 340.8 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.155e-05/0.1521, allocations: 31.72 kB / 340.9 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.1521, allocations: 30.17 kB / 340.9 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1521, allocations: 0 / 340.9 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1521, allocations: 4 kB / 340.9 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1521, allocations: 0 / 340.9 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.1525, allocations: 333.4 kB / 341.2 MB, free: 5.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1525, allocations: 4 kB / 341.2 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.1527, allocations: 39.92 kB / 341.3 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.1529, allocations: 52.75 kB / 341.3 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.1529, allocations: 11.98 kB / 341.3 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.1539, allocations: 1.414 MB / 342.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.154, allocations: 0 / 342.8 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.1546, allocations: 350.2 kB / 343.1 MB, free: 3.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.999e-05/0.1547, allocations: 116.8 kB / 343.2 MB, free: 3.691 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.1548, allocations: 8 kB / 343.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.155, allocations: 15.98 kB / 343.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.121e-05/0.1551, allocations: 35.95 kB / 343.3 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.1551, allocations: 15.92 kB / 343.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.1552, allocations: 186 kB / 343.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1553, allocations: 0 / 343.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.1556, allocations: 83.84 kB / 343.5 MB, free: 3.355 MB / 286.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.0009382/0.1566, allocations: 0.8977 MB / 344.4 MB, free: 2.426 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005827/0.1572, allocations: 322.9 kB / 344.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.185e-06/0.1572, allocations: 4.25 kB / 344.8 MB, free: 2.094 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.1575, allocations: 194.6 kB / 345 MB, free: 1.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.1577, allocations: 39.61 kB / 345 MB, free: 1.855 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.1615, allocations: 2.908 MB / 347.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.1618, allocations: 0.7714 MB / 348.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1619, allocations: 30.27 kB / 348.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1621, allocations: 91.41 kB / 348.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1621, allocations: 0 / 348.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.1878, allocations: 5.899 MB / 354.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.03, allocations: 12.45 kB / 354.7 MB, free: 7.895 MB / 302.1 MB (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) 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) Reference file matches