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.001336/0.001336, allocations: 121.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002015/0.002015, allocations: 200.6 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3031, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.02125/0.3243, allocations: 18.85 MB / 427.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.3355, allocations: 5.733 MB / 433.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003045/0.3386, allocations: 59.88 kB / 433.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00433/0.343, allocations: 1.312 MB / 434.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004586/0.3476, allocations: 1.205 MB / 435.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002059/0.3496, allocations: 0.6749 MB / 436.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006071/0.3557, allocations: 3.927 MB / 440.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002613/0.3584, allocations: 1.592 MB / 442.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002582/0.361, allocations: 1.447 MB / 443.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002206/0.3632, allocations: 1.583 MB / 445.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005407/0.3637, allocations: 376 kB / 445.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007498/0.3645, allocations: 408 kB / 445.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005979/0.3651, allocations: 0.7278 MB / 446.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002155/0.3673, allocations: 1.765 MB / 448.4 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.373, allocations: 4.626 MB / 453 MB, free: 5.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.373, allocations: 0 / 453 MB, free: 5.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.373, allocations: 3.938 kB / 453 MB, free: 5.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.972e-05/0.3731, allocations: 0 / 453 MB, free: 5.027 MB / 366.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.006279/0.3794, allocations: 3.418 MB / 456.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.3794, allocations: 12.03 kB / 456.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004898/0.3799, allocations: 359 kB / 456.8 MB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001749/0.3817, allocations: 493.6 kB / 457.3 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003214/0.3849, allocations: 1.76 MB / 459.1 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.3851, allocations: 193.2 kB / 459.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003477/0.3855, allocations: 263.8 kB / 459.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004134/0.3896, allocations: 2.47 MB / 462 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.815e-05/0.3897, allocations: 15.88 kB / 462 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000211/0.3899, allocations: 108 kB / 462.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.063e-05/0.39, allocations: 64 kB / 462.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00309/0.3931, allocations: 1.639 MB / 463.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/0.4077, allocations: 10.61 MB / 474.4 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.4092, allocations: 1.045 MB / 475.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006063/0.4098, allocations: 367.4 kB / 475.8 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.4099, allocations: 8.656 kB / 475.8 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.4099, allocations: 47.16 kB / 475.9 MB, free: 13.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.485e-06/0.4099, allocations: 0 / 475.9 MB, free: 13.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.005683/0.4156, allocations: 2.962 MB / 478.8 MB, free: 10.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4157, allocations: 167.2 kB / 479 MB, free: 9.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/0.419, allocations: 2.206 MB / 481.2 MB, free: 7.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.881e-05/0.4191, allocations: 41.7 kB / 481.2 MB, free: 7.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.4203, allocations: 1.51 MB / 482.7 MB, free: 6.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002926/0.4206, allocations: 349.1 kB / 483.1 MB, free: 5.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004238/0.421, allocations: 339.3 kB / 483.4 MB, free: 5.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4212, allocations: 301.1 kB / 483.7 MB, free: 5.188 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000686/0.4219, allocations: 368.7 kB / 484.1 MB, free: 4.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.4233, allocations: 1.239 MB / 485.3 MB, free: 3.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/0.4256, allocations: 1.726 MB / 487 MB, free: 1.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/0.4256, allocations: 12 kB / 487.1 MB, free: 1.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003323/0.4289, allocations: 1.844 MB / 488.9 MB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.429, allocations: 18.19 kB / 488.9 MB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-05/0.429, allocations: 32 kB / 488.9 MB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/0.4296, allocations: 159.4 kB / 489.1 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.4308, allocations: 411.3 kB / 489.5 MB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004795/0.4356, allocations: 5.763 MB / 495.3 MB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.4373, allocations: 91.97 kB / 495.4 MB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4375, allocations: 96 kB / 495.4 MB, free: 8.016 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001481/0.4389, allocations: 0.7226 MB / 496.2 MB, free: 7.289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001347/0.4403, allocations: 1.227 MB / 497.4 MB, free: 5.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002173/0.4425, allocations: 1.703 MB / 499.1 MB, free: 3.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.231e-05/0.4425, allocations: 8 kB / 499.1 MB, free: 3.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.003109/0.4456, allocations: 1.82 MB / 0.4892 GB, free: 1.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.4457, allocations: 20 kB / 0.4892 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.134e-05/0.4457, allocations: 31.98 kB / 0.4892 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004659/0.4462, allocations: 159.9 kB / 0.4894 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.4473, allocations: 403.3 kB / 0.4898 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004726/0.4521, allocations: 5.773 MB / 0.4954 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.4538, allocations: 88.05 kB / 0.4955 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4539, allocations: 92 kB / 0.4956 GB, free: 10.56 MB / 430.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.000423/0.4543, allocations: 323.3 kB / 0.4959 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.4546, allocations: 238.5 kB / 0.4961 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001815/0.4565, allocations: 0.9145 MB / 0.497 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4565, allocations: 8 kB / 0.497 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.4565, allocations: 7.938 kB / 0.497 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.4565, allocations: 7.969 kB / 0.497 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004982/0.4615, allocations: 3.11 MB / 0.5001 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.4615, allocations: 8.031 kB / 0.5001 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005899/0.4621, allocations: 167.7 kB / 0.5002 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.4626, allocations: 127.3 kB / 0.5004 GB, free: 5.473 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.4626, allocations: 20 kB / 0.5004 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00464/0.4673, allocations: 5.719 MB / 0.506 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.4673, allocations: 15.86 kB / 0.506 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/0.4699, allocations: 1.497 MB / 0.5074 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000806/0.4707, allocations: 395.5 kB / 0.5078 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.4709, allocations: 36.05 kB / 0.5079 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00087/0.4718, allocations: 47.97 kB / 0.5079 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.472, allocations: 76.34 kB / 0.508 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-05/0.472, allocations: 32 kB / 0.508 GB, free: 12.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.4743, allocations: 1.454 MB / 0.5094 GB, free: 11.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4743, allocations: 0 / 0.5094 GB, free: 11.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003084/0.4774, allocations: 0.9414 MB / 0.5103 GB, free: 10.56 MB / 446.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.00279/0.4802, allocations: 2.104 MB / 0.5124 GB, free: 8.344 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004297/0.4845, allocations: 2.708 MB / 0.515 GB, free: 5.543 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.4845, allocations: 4 kB / 0.515 GB, free: 5.539 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.4856, allocations: 0.8166 MB / 0.5158 GB, free: 4.672 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.4883, allocations: 0.6003 MB / 0.5164 GB, free: 4.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/0.5163, allocations: 17.99 MB / 0.534 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2294/0.7458, allocations: 1.562 MB / 0.5355 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001688/0.7475, allocations: 326 kB / 0.5358 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/0.7489, allocations: 1.053 MB / 0.5369 GB, free: 122.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7489, allocations: 0 / 0.5369 GB, free: 122.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09328/0.8422, allocations: 47.49 MB / 0.5832 GB, free: 84.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.28, allocations: 13.72 kB / 0.5832 GB, free: 84.77 MB / 462.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.1.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