Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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.001147/0.001147, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001154/0.001154, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.349/1.349, 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.002006/0.002006, allocations: 56.28 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.1001, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009053/0.1091, allocations: 8.04 MB / 335.4 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005863/0.115, allocations: 2.677 MB / 338.1 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.1163, allocations: 23.94 kB / 338.1 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.1185, allocations: 0.5442 MB / 338.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002628/0.1212, allocations: 472.3 kB / 339.1 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1222, allocations: 251.7 kB / 339.4 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002437/0.1247, allocations: 1.463 MB / 340.8 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.126, allocations: 0.5768 MB / 341.4 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.1272, allocations: 0.5525 MB / 342 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.1284, allocations: 0.595 MB / 342.6 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003775/0.1288, allocations: 136 kB / 342.7 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006125/0.1294, allocations: 172 kB / 342.9 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.1298, allocations: 286.9 kB / 343.1 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.131, allocations: 0.6649 MB / 343.8 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00216/0.1331, allocations: 1.701 MB / 345.5 MB, free: 2.145 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.1332, allocations: 3.984 kB / 345.5 MB, free: 2.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1332, allocations: 0 / 345.5 MB, free: 2.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.983e-05/0.1332, allocations: 0 / 345.5 MB, free: 2.141 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003369/0.1366, allocations: 1.449 MB / 347 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1367, allocations: 12.03 kB / 347 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000227/0.1369, allocations: 148.4 kB / 347.1 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008656/0.1378, allocations: 183.4 kB / 347.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.1392, allocations: 0.7337 MB / 348 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.238e-05/0.1393, allocations: 70 kB / 348.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.1395, allocations: 100 kB / 348.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.1415, allocations: 0.9346 MB / 349.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/0.1415, allocations: 3.906 kB / 349.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.203e-05/0.1416, allocations: 44 kB / 349.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.1417, allocations: 24 kB / 349.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.1433, allocations: 0.6402 MB / 349.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006527/0.1498, allocations: 3.915 MB / 353.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.1507, allocations: 448.5 kB / 354.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006778/0.1514, allocations: 261.4 kB / 354.5 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.08e-05/0.1515, allocations: 4.328 kB / 354.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1515, allocations: 38.89 kB / 354.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.946e-06/0.1515, allocations: 3.938 kB / 354.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.003241/0.1548, allocations: 1.395 MB / 355.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.1548, allocations: 81.11 kB / 356 MB, free: 7.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.1562, allocations: 0.8252 MB / 356.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.1562, allocations: 33.7 kB / 356.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.1567, allocations: 0.5564 MB / 357.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.1569, allocations: 157.8 kB / 357.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.1571, allocations: 134.5 kB / 357.7 MB, free: 5.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1572, allocations: 334 kB / 358 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004267/0.1577, allocations: 161.9 kB / 358.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006101/0.1583, allocations: 467.9 kB / 358.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.1594, allocations: 0.6583 MB / 359.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.1595, allocations: 0 / 359.3 MB, free: 3.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001803/0.1613, allocations: 0.7705 MB / 360 MB, free: 2.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.1613, allocations: 8 kB / 360.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.1614, allocations: 12 kB / 360.1 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003626/0.1617, allocations: 85.86 kB / 360.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006227/0.1624, allocations: 155.7 kB / 360.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.1657, allocations: 3.153 MB / 363.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.1668, allocations: 35.89 kB / 363.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.734e-05/0.1669, allocations: 32 kB / 363.5 MB, free: 15.04 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 (84): * Single equations (assignments): 82 * 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.0007793/0.1677, allocations: 272.4 kB / 363.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002303/0.1679, allocations: 82.97 kB / 363.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.1691, allocations: 487.5 kB / 364.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1692, allocations: 4 kB / 364.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.1692, allocations: 8 kB / 364.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1692, allocations: 3.984 kB / 364.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.1722, allocations: 1.434 MB / 365.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.1722, allocations: 4 kB / 365.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003904/0.1726, allocations: 68.11 kB / 365.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/0.173, allocations: 81.8 kB / 365.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.173, allocations: 8 kB / 366 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003073/0.1761, allocations: 3.126 MB / 369.1 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1761, allocations: 3.938 kB / 369.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.1778, allocations: 0.7574 MB / 369.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004652/0.1782, allocations: 200.1 kB / 370 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.1785, allocations: 11.94 kB / 370 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005851/0.1791, allocations: 27.97 kB / 370.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.1792, allocations: 35.91 kB / 370.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.1792, allocations: 24.11 kB / 370.1 MB, free: 7.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.1804, allocations: 0.5537 MB / 370.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1804, allocations: 0 / 370.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001088/0.1815, allocations: 211.9 kB / 370.9 MB, free: 7.215 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 (38): * Single equations (assignments): 36 * 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.001989/0.1835, allocations: 1.342 MB / 372.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.1851, allocations: 0.6985 MB / 372.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.1851, allocations: 4 kB / 372.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008412/0.186, allocations: 441.2 kB / 373.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.1876, allocations: 215.6 kB / 373.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1798/0.3674, allocations: 7.822 MB / 381.4 MB, free: 50.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.3679, allocations: 1.004 MB / 382.4 MB, free: 49.69 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004589/0.3684, allocations: 106.6 kB / 382.5 MB, free: 49.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.3688, allocations: 373.3 kB / 382.9 MB, free: 49.64 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3688, allocations: 0 / 382.9 MB, free: 49.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.047/0.4158, allocations: 18.7 MB / 401.6 MB, free: 40.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/10.53, allocations: 4.062 kB / 401.6 MB, free: 40.32 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_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_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_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_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches