Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001455/0.001455, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.66 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.08521, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01218/0.09743, allocations: 12.17 MB / 369.8 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1467/0.2442, allocations: 3.301 MB / 373.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000995/0.2452, allocations: 38.75 kB / 373.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.2467, allocations: 0.6591 MB / 373.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.2481, allocations: 0.7283 MB / 374.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006906/0.2488, allocations: 407.2 kB / 374.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.2509, allocations: 2.396 MB / 377.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.252, allocations: 0.9958 MB / 378.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.2531, allocations: 0.902 MB / 379.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009021/0.254, allocations: 0.9808 MB / 380.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.2543, allocations: 230.1 kB / 380.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.2548, allocations: 270 kB / 380.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.2551, allocations: 460.3 kB / 381.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007742/0.2558, allocations: 1.074 MB / 382.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.2582, allocations: 2.794 MB / 385 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2582, allocations: 1.125 kB / 385 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2582, allocations: 0 / 385 MB, free: 6.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.2583, allocations: 0 / 385 MB, free: 6.77 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003319/0.2616, allocations: 2.158 MB / 387.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.2616, allocations: 10.34 kB / 387.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002207/0.2619, allocations: 222.1 kB / 387.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008749/0.2627, allocations: 283.9 kB / 387.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.2642, allocations: 1.1 MB / 388.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.981e-05/0.2643, allocations: 116.6 kB / 388.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001914/0.2645, allocations: 167.1 kB / 389 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/0.2667, allocations: 1.506 MB / 390.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.591e-05/0.2667, allocations: 7.25 kB / 390.5 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.2669, allocations: 63.56 kB / 390.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.45e-05/0.2669, allocations: 37.84 kB / 390.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.2689, allocations: 1.049 MB / 391.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007241/0.2761, allocations: 6.299 MB / 398 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.2777, allocations: 0.6137 MB / 398.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009152/0.2786, allocations: 457.3 kB / 399 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.2787, allocations: 14.81 kB / 399 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.2787, allocations: 41.75 kB / 399.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.154e-06/0.2787, allocations: 1.562 kB / 399.1 MB, free: 13.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004979/0.2837, allocations: 2.363 MB / 401.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.2838, allocations: 111.6 kB / 401.5 MB, free: 11.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.2855, allocations: 1.303 MB / 402.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.2855, allocations: 36.58 kB / 402.9 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005637/0.2861, allocations: 0.8475 MB / 403.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.2863, allocations: 265.6 kB / 404 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.2865, allocations: 209.3 kB / 404.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.2867, allocations: 346.3 kB / 404.5 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005623/0.2872, allocations: 287.7 kB / 404.8 MB, free: 9.141 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008467/0.2881, allocations: 0.7442 MB / 405.6 MB, free: 8.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.2896, allocations: 1.083 MB / 406.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.2897, allocations: 12 kB / 406.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002456/0.2921, allocations: 1.256 MB / 407.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2922, allocations: 12 kB / 407.9 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.2922, allocations: 16 kB / 407.9 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000531/0.2927, allocations: 139 kB / 408.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000861/0.2936, allocations: 255.6 kB / 408.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003892/0.2975, allocations: 4.637 MB / 413 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009589/0.2985, allocations: 59.88 kB / 413 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.052e-05/0.2986, allocations: 63.92 kB / 413.1 MB, free: 428 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005583/0.2991, allocations: 369.3 kB / 413.4 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.2994, allocations: 138.5 kB / 413.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.3012, allocations: 0.8256 MB / 414.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.3012, allocations: 8 kB / 414.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3012, allocations: 3.938 kB / 414.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.3012, allocations: 3.984 kB / 414.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003777/0.305, allocations: 2.332 MB / 416.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.305, allocations: 4 kB / 416.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005955/0.3056, allocations: 132.3 kB / 416.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004347/0.3061, allocations: 136.3 kB / 417 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.3061, allocations: 19.94 kB / 417 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.3103, allocations: 4.78 MB / 421.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.311e-05/0.3103, allocations: 7.938 kB / 421.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.3127, allocations: 1.295 MB / 423.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/0.3131, allocations: 295.2 kB / 423.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.3133, allocations: 16 kB / 423.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006528/0.314, allocations: 39.97 kB / 423.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3141, allocations: 64.36 kB / 423.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.3141, allocations: 20 kB / 423.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3153, allocations: 0.8781 MB / 424.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3153, allocations: 0 / 424.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3165, allocations: 328 kB / 424.7 MB, free: 4.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002667/0.3192, allocations: 1.885 MB / 426.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.3213, allocations: 1.144 MB / 427.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3213, allocations: 0 / 427.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3223, allocations: 0.7192 MB / 428.5 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.324, allocations: 378.9 kB / 428.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01825/0.3422, allocations: 13.05 MB / 441.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008262/0.3431, allocations: 1.217 MB / 443.1 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007275/0.3438, allocations: 171.6 kB / 443.3 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008374/0.3447, allocations: 0.6249 MB / 443.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3447, allocations: 0 / 443.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06297/0.4076, allocations: 30.55 MB / 474.5 MB, free: 1.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.86, allocations: 15.5 kB / 474.5 MB, free: 1.453 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches