Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.001635/0.001635, allocations: 114.4 kB / 17.74 MB, free: 5.344 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.001753/0.001753, allocations: 183.1 kB / 18.66 MB, free: 4.422 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.425/1.425, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001682/0.001682, allocations: 55.91 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1063, allocations: 46.62 MB / 374.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.2155/0.3218, allocations: 7.942 MB / 382.6 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005514/0.3273, allocations: 2.621 MB / 385.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00119/0.3286, allocations: 23.78 kB / 385.2 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001797/0.3304, allocations: 0.5552 MB / 385.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.332, allocations: 452.7 kB / 386.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006299/0.3327, allocations: 244.3 kB / 386.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001718/0.3344, allocations: 1.432 MB / 387.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008013/0.3352, allocations: 0.5897 MB / 388.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008466/0.3361, allocations: 0.5363 MB / 389 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007411/0.3368, allocations: 0.5806 MB / 389.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.337, allocations: 135 kB / 389.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003973/0.3374, allocations: 176.8 kB / 389.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.3376, allocations: 276.8 kB / 390.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005512/0.3382, allocations: 0.6485 MB / 390.8 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002046/0.3402, allocations: 1.7 MB / 392.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3403, allocations: 1.156 kB / 392.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3403, allocations: 0 / 392.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.503e-05/0.3403, allocations: 0 / 392.5 MB, free: 4.359 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.00245/0.3428, allocations: 1.464 MB / 394 MB, free: 3.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3428, allocations: 11.12 kB / 394 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001727/0.343, allocations: 146.2 kB / 394.2 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005481/0.3435, allocations: 180 kB / 394.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.3447, allocations: 0.728 MB / 395.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.3448, allocations: 76.97 kB / 395.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.3449, allocations: 98.69 kB / 395.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.3464, allocations: 0.9198 MB / 396.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.584e-05/0.3464, allocations: 7.125 kB / 396.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.3465, allocations: 44.16 kB / 396.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.3465, allocations: 23.44 kB / 396.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.3477, allocations: 0.6245 MB / 396.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004838/0.3526, allocations: 3.886 MB / 400.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/0.3532, allocations: 357.4 kB / 401.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002883/0.3535, allocations: 143.5 kB / 401.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.3536, allocations: 7.406 kB / 401.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.3536, allocations: 39.88 kB / 401.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.174e-06/0.3536, allocations: 0 / 401.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002568/0.3562, allocations: 1.216 MB / 402.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.3563, allocations: 89.17 kB / 402.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.3575, allocations: 0.8201 MB / 403.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.3576, allocations: 31.02 kB / 403.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004955/0.3581, allocations: 0.586 MB / 404 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.3582, allocations: 127.6 kB / 404.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.3584, allocations: 130.7 kB / 404.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3586, allocations: 336.4 kB / 404.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003334/0.3589, allocations: 152 kB / 404.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005683/0.3595, allocations: 458.2 kB / 405.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009246/0.3604, allocations: 0.6288 MB / 405.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3604, allocations: 3.156 kB / 405.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001275/0.3617, allocations: 0.694 MB / 406.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.3618, allocations: 10.47 kB / 406.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.3618, allocations: 9.688 kB / 406.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.362, allocations: 32.2 kB / 406.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.3625, allocations: 160.3 kB / 406.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3639, allocations: 1.397 MB / 408.1 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005924/0.3645, allocations: 41.47 kB / 408.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.3645, allocations: 33.28 kB / 408.2 MB, free: 9.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * 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.0003859/0.3649, allocations: 259.4 kB / 408.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3651, allocations: 94.91 kB / 408.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008077/0.3659, allocations: 374.1 kB / 408.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3659, allocations: 3.375 kB / 408.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3659, allocations: 0.9688 kB / 408.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3659, allocations: 0 / 408.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.368, allocations: 1.272 MB / 410.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.368, allocations: 5.406 kB / 410.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.3683, allocations: 75.08 kB / 410.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-05/0.3684, allocations: 24.38 kB / 410.3 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3685, allocations: 13.5 kB / 410.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.3696, allocations: 1.362 MB / 411.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3697, allocations: 6.562 kB / 411.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3708, allocations: 0.6415 MB / 412.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003011/0.3711, allocations: 192.9 kB / 412.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.3712, allocations: 8.625 kB / 412.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.3716, allocations: 23.95 kB / 412.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.317e-05/0.3717, allocations: 36.42 kB / 412.6 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3717, allocations: 12.44 kB / 412.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008708/0.3726, allocations: 0.5559 MB / 413.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3726, allocations: 1.312 kB / 413.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008299/0.3734, allocations: 192.1 kB / 413.3 MB, free: 5.551 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001654/0.3751, allocations: 1.204 MB / 414.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.3763, allocations: 0.506 MB / 415 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3763, allocations: 1.031 kB / 415 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.3768, allocations: 268.1 kB / 415.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.3779, allocations: 211.9 kB / 415.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/0.3896, allocations: 7.121 MB / 422.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008012/0.3904, allocations: 0.9923 MB / 423.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004552/0.3909, allocations: 98.89 kB / 423.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.3914, allocations: 371.2 kB / 424.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3914, allocations: 0 / 424.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05439/0.4458, allocations: 17.9 MB / 442 MB, free: 10.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 15.83 kB / 442 MB, free: 10.84 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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_DCEE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches