Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001805/0.001806, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.7 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07831/0.07952, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.15/0.2296, allocations: 18.83 MB / 376.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007203/0.2368, allocations: 5.738 MB / 382.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.238, allocations: 65.44 kB / 382.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002527/0.2406, allocations: 1.302 MB / 383.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002214/0.2428, allocations: 1.199 MB / 384.7 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.244, allocations: 0.6712 MB / 385.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.2471, allocations: 3.921 MB / 389.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.2488, allocations: 1.586 MB / 390.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.2506, allocations: 1.448 MB / 392.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.2521, allocations: 1.579 MB / 393.9 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004303/0.2525, allocations: 379.2 kB / 394.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007363/0.2533, allocations: 414.7 kB / 394.7 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003871/0.2537, allocations: 0.7309 MB / 395.4 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.2549, allocations: 1.764 MB / 397.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003527/0.2585, allocations: 4.547 MB / 401.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2585, allocations: 1.375 kB / 401.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2585, allocations: 0 / 401.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.251e-05/0.2585, allocations: 0 / 401.7 MB, free: 13.76 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005277/0.2638, allocations: 3.335 MB / 405.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2639, allocations: 9.531 kB / 405.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003638/0.2642, allocations: 361 kB / 405.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.2657, allocations: 477 kB / 405.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002466/0.2682, allocations: 1.708 MB / 407.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001118/0.2683, allocations: 189.3 kB / 407.8 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002704/0.2686, allocations: 278.9 kB / 408.1 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003699/0.2723, allocations: 2.463 MB / 410.5 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.495e-05/0.2724, allocations: 23.81 kB / 410.6 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001927/0.2726, allocations: 108 kB / 410.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.576e-05/0.2726, allocations: 64 kB / 410.7 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.2756, allocations: 1.64 MB / 412.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/0.2875, allocations: 10.67 MB / 423 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.2888, allocations: 1.039 MB / 424.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005639/0.2893, allocations: 368.5 kB / 424.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.2894, allocations: 8.656 kB / 424.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.2894, allocations: 47.16 kB / 424.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.355e-06/0.2894, allocations: 0 / 424.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.004786/0.2942, allocations: 2.907 MB / 427.4 MB, free: 5.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.2943, allocations: 167.2 kB / 427.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/0.297, allocations: 2.209 MB / 429.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.297, allocations: 41.7 kB / 429.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009417/0.298, allocations: 1.47 MB / 431.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.2982, allocations: 327.5 kB / 431.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003635/0.2986, allocations: 331.1 kB / 431.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.2987, allocations: 305.1 kB / 432.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006405/0.2993, allocations: 372.7 kB / 432.6 MB, free: 304 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.3005, allocations: 1.235 MB / 433.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/0.3024, allocations: 1.726 MB / 435.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.3024, allocations: 8 kB / 435.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002728/0.3051, allocations: 1.838 MB / 437.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.3052, allocations: 16.88 kB / 437.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.787e-05/0.3052, allocations: 32 kB / 437.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.3057, allocations: 163.3 kB / 437.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.3068, allocations: 411.3 kB / 438 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003803/0.3106, allocations: 5.761 MB / 443.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.312, allocations: 95.94 kB / 443.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.566e-05/0.3121, allocations: 95.94 kB / 444 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001169/0.3133, allocations: 0.7226 MB / 444.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001126/0.3144, allocations: 1.227 MB / 445.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00183/0.3163, allocations: 1.707 MB / 447.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.072e-05/0.3163, allocations: 12 kB / 447.6 MB, free: 15 MB / 366.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002649/0.3189, allocations: 1.807 MB / 449.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.319, allocations: 20.16 kB / 449.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.319, allocations: 35.98 kB / 449.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003969/0.3194, allocations: 151.4 kB / 449.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.3205, allocations: 411.2 kB / 450 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003776/0.3243, allocations: 5.757 MB / 455.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.3258, allocations: 87.88 kB / 455.9 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.67e-05/0.3259, allocations: 92 kB / 456 MB, free: 6.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (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.0003098/0.3262, allocations: 331.6 kB / 456.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/0.3265, allocations: 229.2 kB / 456.5 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.3281, allocations: 0.9107 MB / 457.4 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.3281, allocations: 8 kB / 457.4 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3281, allocations: 3.938 kB / 457.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3281, allocations: 7.984 kB / 457.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/0.3325, allocations: 3.124 MB / 460.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3326, allocations: 4.094 kB / 460.6 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006067/0.3332, allocations: 167.7 kB / 460.7 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003956/0.3336, allocations: 123.4 kB / 460.9 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.3337, allocations: 27.94 kB / 460.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003718/0.3374, allocations: 5.707 MB / 466.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.3374, allocations: 15.88 kB / 466.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.3395, allocations: 1.487 MB / 468.1 MB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005941/0.3402, allocations: 390.2 kB / 468.5 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.3404, allocations: 31.92 kB / 468.5 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009104/0.3414, allocations: 47.97 kB / 468.6 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.3415, allocations: 80.34 kB / 468.6 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.3415, allocations: 28 kB / 468.7 MB, free: 8.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002105/0.3436, allocations: 1.454 MB / 470.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.425e-06/0.3437, allocations: 0 / 470.1 MB, free: 7.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002797/0.3465, allocations: 0.9413 MB / 471.1 MB, free: 6.078 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002512/0.349, allocations: 2.091 MB / 473.1 MB, free: 3.875 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004121/0.3531, allocations: 2.728 MB / 475.9 MB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3531, allocations: 0 / 475.9 MB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009879/0.3541, allocations: 0.8234 MB / 476.7 MB, free: 184 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/0.3568, allocations: 0.604 MB / 477.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02768/0.3845, allocations: 21.69 MB / 499 MB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/0.3858, allocations: 1.567 MB / 0.4888 GB, free: 5.391 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001406/0.3872, allocations: 319.2 kB / 0.4891 GB, free: 5.074 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.3884, allocations: 1.054 MB / 0.4902 GB, free: 4.02 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3884, allocations: 4 kB / 0.4902 GB, free: 4.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2282/0.6166, allocations: 48.85 MB / 0.5379 GB, free: 149 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.797/10.41, allocations: 14.45 kB / 0.5379 GB, free: 149 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches