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.001127/0.001127, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001146, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2747, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01933/0.2941, allocations: 18.85 MB / 427.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.3061, allocations: 5.721 MB / 433.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.3092, allocations: 71.81 kB / 433.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004427/0.3137, allocations: 1.359 MB / 434.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005345/0.3191, allocations: 1.295 MB / 436.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002322/0.3214, allocations: 0.675 MB / 436.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006151/0.3276, allocations: 3.931 MB / 440.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003354/0.331, allocations: 1.592 MB / 442.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003034/0.334, allocations: 1.471 MB / 443.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002704/0.3368, allocations: 1.579 MB / 445.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009583/0.3377, allocations: 376 kB / 445.7 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.3392, allocations: 416 kB / 446.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009379/0.3401, allocations: 0.7316 MB / 446.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003399/0.3435, allocations: 1.761 MB / 448.6 MB, free: 9.508 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006569/0.3501, allocations: 4.626 MB / 453.2 MB, free: 4.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.3502, allocations: 0 / 453.2 MB, free: 4.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3502, allocations: 3.938 kB / 453.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.3503, allocations: 0 / 453.2 MB, free: 4.859 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.006259/0.3566, allocations: 3.422 MB / 456.6 MB, free: 1.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3566, allocations: 12.03 kB / 456.6 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003712/0.357, allocations: 363 kB / 457 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/0.3585, allocations: 493.6 kB / 457.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.3614, allocations: 1.748 MB / 459.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.3615, allocations: 197.2 kB / 459.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.3618, allocations: 267.8 kB / 459.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003795/0.3656, allocations: 2.466 MB / 462.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.289e-05/0.3657, allocations: 15.94 kB / 462.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.3659, allocations: 108 kB / 462.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.365e-05/0.366, allocations: 68 kB / 462.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002882/0.3688, allocations: 1.638 MB / 464 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01314/0.382, allocations: 10.6 MB / 474.6 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.3834, allocations: 1.053 MB / 475.6 MB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005931/0.384, allocations: 367.4 kB / 476 MB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.477e-05/0.3841, allocations: 8.656 kB / 476 MB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.3842, allocations: 43.22 kB / 476 MB, free: 13.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 3.346e-06/0.3842, allocations: 0 / 476 MB, free: 13.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.005387/0.3896, allocations: 2.958 MB / 479 MB, free: 10 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.3897, allocations: 175.2 kB / 479.2 MB, free: 9.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.3928, allocations: 2.206 MB / 481.4 MB, free: 7.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.36e-05/0.3929, allocations: 41.7 kB / 481.4 MB, free: 7.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.394, allocations: 1.514 MB / 482.9 MB, free: 5.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002713/0.3943, allocations: 349.1 kB / 483.3 MB, free: 5.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000417/0.3947, allocations: 331.3 kB / 483.6 MB, free: 5.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3948, allocations: 301.1 kB / 483.9 MB, free: 5.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.3955, allocations: 376.7 kB / 484.3 MB, free: 4.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.3968, allocations: 1.227 MB / 485.5 MB, free: 2.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001915/0.3988, allocations: 1.73 MB / 487.2 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.3988, allocations: 8 kB / 487.2 MB, free: 0.8398 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003081/0.4019, allocations: 1.847 MB / 489.1 MB, free: 14.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.4019, allocations: 16.88 kB / 489.1 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.122e-05/0.4019, allocations: 32 kB / 489.1 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/0.4025, allocations: 155.4 kB / 489.3 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.4037, allocations: 415.4 kB / 489.7 MB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004358/0.4081, allocations: 5.762 MB / 495.4 MB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.4097, allocations: 92.06 kB / 495.5 MB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.4098, allocations: 92 kB / 495.6 MB, free: 7.852 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001409/0.4113, allocations: 0.7304 MB / 496.3 MB, free: 7.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00115/0.4124, allocations: 1.227 MB / 497.6 MB, free: 5.473 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002046/0.4145, allocations: 1.699 MB / 499.3 MB, free: 3.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.426e-05/0.4145, allocations: 15.98 kB / 499.3 MB, free: 3.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002991/0.4175, allocations: 1.828 MB / 0.4894 GB, free: 1.496 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.4175, allocations: 16 kB / 0.4894 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.4176, allocations: 32 kB / 0.4894 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004435/0.418, allocations: 159.4 kB / 0.4896 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.4191, allocations: 399.3 kB / 0.4899 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/0.4232, allocations: 5.773 MB / 0.4956 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.4249, allocations: 91.92 kB / 0.4957 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.425, allocations: 88 kB / 0.4958 GB, free: 10.38 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.0003877/0.4254, allocations: 323.5 kB / 0.4961 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.4257, allocations: 238.5 kB / 0.4963 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.4275, allocations: 0.9184 MB / 0.4972 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4275, allocations: 8 kB / 0.4972 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4275, allocations: 3.938 kB / 0.4972 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.4275, allocations: 7.984 kB / 0.4972 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004673/0.4322, allocations: 3.117 MB / 0.5003 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4322, allocations: 4 kB / 0.5003 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.4328, allocations: 152.5 kB / 0.5004 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.4332, allocations: 127.3 kB / 0.5005 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.662e-05/0.4333, allocations: 28.06 kB / 0.5005 GB, free: 5.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003995/0.4373, allocations: 5.719 MB / 0.5061 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.4373, allocations: 12.09 kB / 0.5061 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.4397, allocations: 1.497 MB / 0.5076 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009135/0.4406, allocations: 395.5 kB / 0.508 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004532/0.4411, allocations: 23.94 kB / 0.508 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.4423, allocations: 59.95 kB / 0.5081 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.4425, allocations: 80.3 kB / 0.5081 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.4425, allocations: 28 kB / 0.5082 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002459/0.445, allocations: 1.458 MB / 0.5096 GB, free: 11.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.445, allocations: 0 / 0.5096 GB, free: 11.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003205/0.4482, allocations: 0.9414 MB / 0.5105 GB, free: 10.39 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.002781/0.451, allocations: 2.103 MB / 0.5126 GB, free: 8.176 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004262/0.4553, allocations: 2.705 MB / 0.5152 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.4553, allocations: 8.188 kB / 0.5152 GB, free: 5.371 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.4563, allocations: 0.8115 MB / 0.516 GB, free: 4.508 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/0.4593, allocations: 0.5991 MB / 0.5166 GB, free: 3.922 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/0.487, allocations: 17.99 MB / 0.5342 GB, free: 0.6914 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2304/0.7174, allocations: 1.566 MB / 0.5357 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001528/0.719, allocations: 322.9 kB / 0.536 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.7202, allocations: 1.055 MB / 0.537 GB, free: 122.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7202, allocations: 0.5312 kB / 0.537 GB, free: 122.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09095/0.8112, allocations: 47.49 MB / 0.5834 GB, free: 84.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.87, allocations: 5.656 kB / 0.5834 GB, free: 84.88 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.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