Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001756/0.001764, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002283/0.002283, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001852, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3056, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00971/0.3154, allocations: 7.147 MB / 415.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00485/0.3203, allocations: 2.379 MB / 418.3 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000928/0.3213, allocations: 19.94 kB / 418.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001345/0.3227, allocations: 489 kB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.3238, allocations: 389 kB / 419.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.3243, allocations: 207.7 kB / 419.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.3257, allocations: 1.199 MB / 420.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000779/0.3265, allocations: 0.5115 MB / 421.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007145/0.3273, allocations: 466.1 kB / 421.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006083/0.3279, allocations: 493.8 kB / 422 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002966/0.3282, allocations: 112 kB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000315/0.3285, allocations: 167.8 kB / 422.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.3287, allocations: 227.2 kB / 422.5 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005505/0.3293, allocations: 0.5404 MB / 423.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.3311, allocations: 1.444 MB / 424.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3312, allocations: 0 / 424.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3312, allocations: 0 / 424.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.3312, allocations: 4 kB / 424.5 MB, free: 1.707 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002399/0.3336, allocations: 1.273 MB / 425.8 MB, free: 392 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.3337, allocations: 12.02 kB / 425.8 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001753/0.3338, allocations: 127.1 kB / 425.9 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005206/0.3344, allocations: 148.2 kB / 426.1 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.3355, allocations: 0.6499 MB / 426.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.797e-05/0.3356, allocations: 58.38 kB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.3357, allocations: 88.08 kB / 426.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3371, allocations: 0.7793 MB / 427.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.3372, allocations: 7.938 kB / 427.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.3372, allocations: 32 kB / 427.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.3373, allocations: 16 kB / 427.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.3385, allocations: 0.5153 MB / 428.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004586/0.3431, allocations: 3.377 MB / 431.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.3437, allocations: 230.1 kB / 431.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.344, allocations: 116.8 kB / 431.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.344, allocations: 4 kB / 431.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.3441, allocations: 34.56 kB / 432 MB, free: 9.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.3441, allocations: 0 / 432 MB, free: 9.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002281/0.3464, allocations: 1.07 MB / 433 MB, free: 8.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.3465, allocations: 81.34 kB / 433.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009772/0.3474, allocations: 0.7311 MB / 433.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.3475, allocations: 29.7 kB / 433.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003907/0.3479, allocations: 0.5034 MB / 434.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.348, allocations: 115.1 kB / 434.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3481, allocations: 114.2 kB / 434.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002878/0.3484, allocations: 378.8 kB / 435 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.3487, allocations: 125.2 kB / 435.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005086/0.3492, allocations: 422.1 kB / 435.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009141/0.3502, allocations: 0.5754 MB / 436.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3502, allocations: 0 / 436.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001221/0.3514, allocations: 0.6231 MB / 436.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.3514, allocations: 8 kB / 436.7 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.3515, allocations: 15.94 kB / 436.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.3516, allocations: 28.84 kB / 436.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.3521, allocations: 148.1 kB / 436.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/0.3535, allocations: 1.386 MB / 438.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.354, allocations: 39.94 kB / 438.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.354, allocations: 31.98 kB / 438.4 MB, free: 2.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003725/0.3544, allocations: 237.5 kB / 438.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.3545, allocations: 71.53 kB / 438.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006854/0.3552, allocations: 325.5 kB / 439 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3552, allocations: 0 / 439 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3552, allocations: 4 kB / 439 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3553, allocations: 0 / 439 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.3571, allocations: 1.097 MB / 440.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3571, allocations: 4 kB / 440.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.3574, allocations: 59.91 kB / 440.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-05/0.3575, allocations: 29.06 kB / 440.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.3575, allocations: 8 kB / 440.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.3587, allocations: 1.375 MB / 441.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3587, allocations: 0 / 441.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009334/0.3597, allocations: 0.5531 MB / 442.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.3599, allocations: 180.6 kB / 442.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.557e-05/0.36, allocations: 8 kB / 442.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.3603, allocations: 19.97 kB / 442.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.289e-05/0.3604, allocations: 27.86 kB / 442.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.3605, allocations: 8 kB / 442.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007786/0.3612, allocations: 0.5029 MB / 442.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3612, allocations: 0 / 442.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006713/0.3619, allocations: 164 kB / 443 MB, free: 14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * 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): 1 system {(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.001406/0.3633, allocations: 1.129 MB / 444.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009662/0.3643, allocations: 463.2 kB / 444.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3644, allocations: 0 / 444.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003925/0.3648, allocations: 236.1 kB / 444.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009974/0.3658, allocations: 189 kB / 445 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/0.3751, allocations: 6.286 MB / 451.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.3758, allocations: 0.9409 MB / 452.2 MB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003415/0.3762, allocations: 90.02 kB / 452.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.3766, allocations: 299.3 kB / 452.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3766, allocations: 4 kB / 452.6 MB, free: 3.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05162/0.4282, allocations: 15.44 MB / 468 MB, free: 4.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12, allocations: 8 kB / 468.1 MB, free: 4.66 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches