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.001816/0.001825, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.002087/0.002088, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.431/1.431, 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.001625/0.001625, allocations: 47.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1064, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.2238/0.3303, allocations: 8.031 MB / 382.7 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004931/0.3353, allocations: 2.67 MB / 385.4 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009397/0.3362, allocations: 24.38 kB / 385.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.3379, allocations: 0.5598 MB / 385.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.3391, allocations: 463.2 kB / 386.4 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.3397, allocations: 254.5 kB / 386.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.3412, allocations: 1.47 MB / 388.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007468/0.342, allocations: 0.5895 MB / 388.7 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006815/0.3427, allocations: 0.5453 MB / 389.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006528/0.3433, allocations: 0.5953 MB / 389.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.3435, allocations: 137.2 kB / 390 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003788/0.3439, allocations: 175.8 kB / 390.2 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.3441, allocations: 282.8 kB / 390.4 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005273/0.3446, allocations: 0.6625 MB / 391.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.3467, allocations: 1.73 MB / 392.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3468, allocations: 0 / 392.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3468, allocations: 1.125 kB / 392.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.3468, allocations: 0 / 392.8 MB, free: 4.188 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00229/0.3491, allocations: 1.491 MB / 394.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3491, allocations: 9.375 kB / 394.3 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.3493, allocations: 153.1 kB / 394.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006254/0.35, allocations: 195.5 kB / 394.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.3511, allocations: 0.7486 MB / 395.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.685e-05/0.3511, allocations: 73.22 kB / 395.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.3513, allocations: 97.41 kB / 395.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3529, allocations: 0.9371 MB / 396.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/0.3529, allocations: 6.516 kB / 396.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.8e-05/0.353, allocations: 42.12 kB / 396.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-05/0.3531, allocations: 24.22 kB / 396.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.3544, allocations: 0.6332 MB / 397.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.3596, allocations: 3.898 MB / 401.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000728/0.3604, allocations: 432.5 kB / 401.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006423/0.361, allocations: 280.9 kB / 401.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.3611, allocations: 4.797 kB / 401.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.3611, allocations: 38.09 kB / 401.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.034e-06/0.3611, allocations: 0 / 401.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.002871/0.364, allocations: 1.413 MB / 403.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.867e-05/0.3641, allocations: 82.61 kB / 403.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.3653, allocations: 0.8297 MB / 404.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/0.3654, allocations: 39.7 kB / 404.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/0.3659, allocations: 0.5723 MB / 404.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.366, allocations: 163.2 kB / 404.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.3662, allocations: 132.5 kB / 405.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.3664, allocations: 331.9 kB / 405.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.3668, allocations: 171.1 kB / 405.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006866/0.3675, allocations: 460.4 kB / 406 MB, free: 11.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3686, allocations: 0.6608 MB / 406.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.3686, allocations: 2.281 kB / 406.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001481/0.3701, allocations: 0.766 MB / 407.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.3701, allocations: 9.344 kB / 407.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.3701, allocations: 14.19 kB / 407.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002868/0.3704, allocations: 90.17 kB / 407.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.3709, allocations: 149.2 kB / 407.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002853/0.3738, allocations: 3.146 MB / 410.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.3744, allocations: 36.34 kB / 410.9 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.3745, allocations: 31.75 kB / 410.9 MB, free: 7.234 MB / 334.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.0004257/0.3749, allocations: 268.2 kB / 411.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.375, allocations: 92.25 kB / 411.3 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009626/0.376, allocations: 0.4888 MB / 411.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.376, allocations: 4.375 kB / 411.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.376, allocations: 1.25 kB / 411.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.376, allocations: 9.078 kB / 411.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.3783, allocations: 1.428 MB / 413.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.3783, allocations: 2.656 kB / 413.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.3787, allocations: 69.8 kB / 413.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002304/0.3789, allocations: 72.06 kB / 413.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.379, allocations: 12.72 kB / 413.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/0.3817, allocations: 3.123 MB / 416.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3818, allocations: 2.25 kB / 416.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.3831, allocations: 0.7706 MB / 417.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/0.3834, allocations: 205.5 kB / 417.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3835, allocations: 12.59 kB / 417.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.3839, allocations: 26.8 kB / 417.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.384, allocations: 34.34 kB / 417.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.3841, allocations: 18.75 kB / 417.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007535/0.3848, allocations: 0.5644 MB / 418.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3848, allocations: 0 / 418.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008569/0.3857, allocations: 204.8 kB / 418.3 MB, free: 1.262 MB / 334.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.001656/0.3874, allocations: 1.36 MB / 419.7 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.3886, allocations: 0.6776 MB / 420.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3887, allocations: 0 / 420.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.3893, allocations: 449.4 kB / 420.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3904, allocations: 220.4 kB / 421 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.4016, allocations: 7.335 MB / 428.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.4024, allocations: 1.008 MB / 429.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005133/0.4029, allocations: 103.3 kB / 429.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005286/0.4035, allocations: 371.3 kB / 429.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4035, allocations: 0 / 429.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05893/0.4624, allocations: 19.07 MB / 448.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.55, allocations: 7.891 kB / 448.9 MB, free: 3.672 MB / 366.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