Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001116/0.001116, allocations: 102.6 kB / 17.58 MB, free: 5.422 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.001136/0.001136, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.338/1.338, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001124/0.001125, allocations: 55.92 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08271/0.08385, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008754/0.09264, allocations: 8.169 MB / 335.6 MB, free: 12.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004145/0.09681, allocations: 2.72 MB / 338.3 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.09741, allocations: 27.94 kB / 338.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.09863, allocations: 0.5519 MB / 338.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009108/0.09955, allocations: 484.2 kB / 339.3 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000441/0.1, allocations: 267.6 kB / 339.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.1014, allocations: 1.487 MB / 341.1 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000761/0.1021, allocations: 0.5886 MB / 341.7 MB, free: 5.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000714/0.1029, allocations: 0.5564 MB / 342.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006409/0.1035, allocations: 0.6183 MB / 342.8 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.1037, allocations: 144 kB / 343 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.104, allocations: 176 kB / 343.2 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002136/0.1042, allocations: 283 kB / 343.4 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006235/0.1049, allocations: 0.6765 MB / 344.1 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001493/0.1064, allocations: 1.732 MB / 345.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1064, allocations: 0 / 345.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1064, allocations: 0 / 345.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1064, allocations: 0 / 345.8 MB, free: 1.809 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002489/0.1089, allocations: 1.48 MB / 347.3 MB, free: 280 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.109, allocations: 8.031 kB / 347.3 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001834/0.1092, allocations: 152.4 kB / 347.5 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007052/0.1099, allocations: 187.3 kB / 347.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.1111, allocations: 0.75 MB / 348.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.418e-05/0.1112, allocations: 78 kB / 348.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.1113, allocations: 99.91 kB / 348.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1128, allocations: 0.9425 MB / 349.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.87e-05/0.1129, allocations: 7.984 kB / 349.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-05/0.113, allocations: 44 kB / 349.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.113, allocations: 27.94 kB / 349.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1142, allocations: 0.6481 MB / 350.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005077/0.1193, allocations: 3.957 MB / 354.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006771/0.12, allocations: 435.9 kB / 354.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/0.1206, allocations: 276.5 kB / 354.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.1206, allocations: 7.984 kB / 354.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1207, allocations: 34.56 kB / 355 MB, free: 8.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.437e-06/0.1207, allocations: 4 kB / 355 MB, free: 8.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002917/0.1236, allocations: 1.536 MB / 356.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.1237, allocations: 85.11 kB / 356.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.1247, allocations: 0.8371 MB / 357.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.1248, allocations: 33.7 kB / 357.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004088/0.1252, allocations: 0.5681 MB / 358 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1253, allocations: 161.8 kB / 358.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.1255, allocations: 138.4 kB / 358.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1256, allocations: 334 kB / 358.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003483/0.126, allocations: 169.9 kB / 358.8 MB, free: 4.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.1265, allocations: 475.5 kB / 359.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009211/0.1275, allocations: 0.6797 MB / 359.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1275, allocations: 4 kB / 359.9 MB, free: 2.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001307/0.1288, allocations: 0.7786 MB / 360.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1288, allocations: 8 kB / 360.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.1288, allocations: 16.39 kB / 360.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.1291, allocations: 85.62 kB / 360.8 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.1296, allocations: 159.7 kB / 361 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.1322, allocations: 3.157 MB / 364.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.1328, allocations: 31.89 kB / 364.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-05/0.1329, allocations: 36 kB / 364.2 MB, free: 14.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000384/0.1332, allocations: 269.5 kB / 364.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.1334, allocations: 90.95 kB / 364.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009563/0.1343, allocations: 0.5028 MB / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1344, allocations: 4 kB / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1344, allocations: 128 / 365.1 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1344, allocations: 7.984 kB / 365.1 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.1365, allocations: 1.488 MB / 366.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1365, allocations: 0 / 366.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.1368, allocations: 71.89 kB / 366.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/0.1371, allocations: 73.91 kB / 366.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.1371, allocations: 11.98 kB / 366.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/0.1394, allocations: 3.118 MB / 369.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1394, allocations: 0 / 369.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.1407, allocations: 0.7971 MB / 370.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002609/0.1409, allocations: 200.2 kB / 370.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.1411, allocations: 15.94 kB / 370.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.1415, allocations: 27.98 kB / 370.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.374e-05/0.1416, allocations: 43.88 kB / 370.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.1416, allocations: 8 kB / 370.9 MB, free: 7.145 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007334/0.1423, allocations: 0.581 MB / 371.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1424, allocations: 0 / 371.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008237/0.1432, allocations: 204 kB / 371.7 MB, free: 6.367 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.1448, allocations: 1.361 MB / 373.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.1461, allocations: 0.7139 MB / 373.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1462, allocations: 0 / 373.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006609/0.1468, allocations: 465.9 kB / 374.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.1479, allocations: 228.1 kB / 374.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1542/0.3021, allocations: 7.987 MB / 382.4 MB, free: 50.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005965/0.3028, allocations: 1.01 MB / 383.5 MB, free: 49.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005148/0.3033, allocations: 111.5 kB / 383.6 MB, free: 49.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/0.3037, allocations: 389.3 kB / 383.9 MB, free: 49.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3037, allocations: 0 / 383.9 MB, free: 49.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06177/0.3655, allocations: 19.07 MB / 403 MB, free: 38.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.978/10.34, allocations: 19.42 kB / 403 MB, free: 38.87 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches