Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001237/0.001237, allocations: 104.9 kB / 17.58 MB, free: 5.406 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.001068/0.001068, 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.374/1.374, allocations: 205.1 MB / 224.4 MB, free: 12.27 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.001945/0.001945, allocations: 48.16 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.114, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.02072/0.1348, allocations: 11.7 MB / 339.1 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008662/0.1435, allocations: 3.219 MB / 342.3 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.1455, allocations: 39.88 kB / 342.3 MB, free: 5.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002797/0.1483, allocations: 0.6401 MB / 343 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00349/0.1518, allocations: 0.6704 MB / 343.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.1535, allocations: 403.4 kB / 344 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004337/0.1578, allocations: 2.231 MB / 346.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002614/0.1605, allocations: 0.985 MB / 347.3 MB, free: 356 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002051/0.1625, allocations: 0.825 MB / 348.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00202/0.1646, allocations: 0.9178 MB / 349 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008304/0.1654, allocations: 216 kB / 349.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1666, allocations: 259.8 kB / 349.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006748/0.1673, allocations: 434.4 kB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.1695, allocations: 1.015 MB / 350.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004175/0.1737, allocations: 2.644 MB / 353.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.1737, allocations: 0 / 353.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1737, allocations: 0 / 353.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.166e-05/0.1738, allocations: 0 / 353.5 MB, free: 10.04 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005688/0.1795, allocations: 2.068 MB / 355.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1796, allocations: 8.031 kB / 355.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004166/0.18, allocations: 224 kB / 355.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001326/0.1813, allocations: 258.5 kB / 356.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002408/0.1837, allocations: 1.024 MB / 357.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.1839, allocations: 115.2 kB / 357.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003209/0.1842, allocations: 159.9 kB / 357.4 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003747/0.188, allocations: 1.483 MB / 358.9 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-05/0.1881, allocations: 7.906 kB / 358.9 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.1883, allocations: 71.98 kB / 359 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.682e-05/0.1884, allocations: 36 kB / 359 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.1914, allocations: 0.9824 MB / 360 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01291/0.2043, allocations: 6.57 MB / 366.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.2056, allocations: 404.2 kB / 366.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000692/0.2063, allocations: 222.1 kB / 367.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.59e-05/0.2064, allocations: 8.438 kB / 367.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009165/0.2074, allocations: 268.8 kB / 367.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 4.789e-06/0.2074, allocations: 3.938 kB / 367.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005788/0.2132, allocations: 1.762 MB / 369.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.2134, allocations: 166.8 kB / 369.3 MB, free: 9.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.2166, allocations: 1.273 MB / 370.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.216e-05/0.2167, allocations: 33.7 kB / 370.7 MB, free: 8.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.2178, allocations: 0.879 MB / 371.5 MB, free: 7.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/0.2181, allocations: 205.2 kB / 371.7 MB, free: 7.094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004388/0.2185, allocations: 214.6 kB / 371.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.2188, allocations: 357.9 kB / 372.3 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007406/0.2195, allocations: 230.5 kB / 372.5 MB, free: 6.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.2208, allocations: 0.7995 MB / 373.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002135/0.223, allocations: 1.122 MB / 374.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/0.223, allocations: 4 kB / 374.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003162/0.2262, allocations: 1.173 MB / 375.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.2263, allocations: 37.7 kB / 375.7 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.598e-05/0.2263, allocations: 23.94 kB / 375.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.2266, allocations: 65.69 kB / 375.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.2279, allocations: 272 kB / 376 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2118/0.4398, allocations: 2.767 MB / 378.8 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4417, allocations: 68.03 kB / 378.8 MB, free: 50.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.4419, allocations: 64.23 kB / 378.9 MB, free: 50.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008109/0.4427, allocations: 358.3 kB / 379.3 MB, free: 50.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/0.443, allocations: 132.5 kB / 379.4 MB, free: 50.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.4446, allocations: 0.5502 MB / 379.9 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.4447, allocations: 5.5 kB / 379.9 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4447, allocations: 1.375 kB / 379.9 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4447, allocations: 2.672 kB / 379.9 MB, free: 50.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00451/0.4492, allocations: 1.881 MB / 381.8 MB, free: 49.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.4493, allocations: 4.141 kB / 381.8 MB, free: 49.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000719/0.45, allocations: 103.4 kB / 381.9 MB, free: 49.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002288/0.4502, allocations: 49.83 kB / 382 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-05/0.4503, allocations: 17.42 kB / 382 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.4522, allocations: 2.74 MB / 384.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.4523, allocations: 18.73 kB / 384.8 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.4544, allocations: 0.9162 MB / 385.7 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008113/0.4553, allocations: 253.5 kB / 385.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003463/0.4556, allocations: 23.72 kB / 385.9 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4566, allocations: 32.8 kB / 386 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.4568, allocations: 50.22 kB / 386 MB, free: 46.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.349e-05/0.4569, allocations: 19.22 kB / 386 MB, free: 46.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002251/0.4592, allocations: 0.8461 MB / 386.9 MB, free: 45.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4592, allocations: 3.938 kB / 386.9 MB, free: 45.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002283/0.4615, allocations: 303.8 kB / 387.2 MB, free: 45.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.002576/0.4641, allocations: 1.497 MB / 388.7 MB, free: 44.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002428/0.4665, allocations: 0.949 MB / 389.6 MB, free: 44.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4666, allocations: 0 / 389.6 MB, free: 44.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009612/0.4675, allocations: 476.1 kB / 390.1 MB, free: 43.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.4701, allocations: 347.2 kB / 390.4 MB, free: 43.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02454/0.4947, allocations: 12.16 MB / 402.6 MB, free: 35.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.4958, allocations: 1.178 MB / 403.8 MB, free: 34.65 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001209/0.497, allocations: 174.3 kB / 403.9 MB, free: 34.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008686/0.4979, allocations: 0.5662 MB / 404.5 MB, free: 34.15 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4979, allocations: 0 / 404.5 MB, free: 34.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07488/0.5728, allocations: 27.16 MB / 431.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.88, allocations: 19.83 kB / 431.7 MB, free: 8.672 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches