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.001247/0.001247, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2705, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01949/0.29, allocations: 18.85 MB / 427.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.3012, allocations: 5.717 MB / 433.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003262/0.3046, allocations: 67.81 kB / 433.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004495/0.3091, allocations: 1.359 MB / 434.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004641/0.3138, allocations: 1.299 MB / 436.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.3159, allocations: 0.6749 MB / 436.7 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005512/0.3214, allocations: 3.927 MB / 440.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002931/0.3244, allocations: 1.588 MB / 442.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.3271, allocations: 1.467 MB / 443.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.3297, allocations: 1.579 MB / 445.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.3308, allocations: 376 kB / 445.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.3324, allocations: 408 kB / 446.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009758/0.3334, allocations: 0.7394 MB / 446.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00329/0.3367, allocations: 1.761 MB / 448.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007273/0.344, allocations: 4.626 MB / 453.2 MB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.344, allocations: 0 / 453.2 MB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.344, allocations: 3.938 kB / 453.2 MB, free: 4.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.3442, allocations: 3.938 kB / 453.2 MB, free: 4.871 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.007804/0.3521, allocations: 3.414 MB / 456.6 MB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3521, allocations: 16.02 kB / 456.6 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007861/0.3529, allocations: 359 kB / 457 MB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.355, allocations: 493.6 kB / 457.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004121/0.3591, allocations: 1.756 MB / 459.2 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.3593, allocations: 193.2 kB / 459.4 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005085/0.3599, allocations: 271.8 kB / 459.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004734/0.3646, allocations: 2.466 MB / 462.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.458e-05/0.3647, allocations: 15.94 kB / 462.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.3649, allocations: 108 kB / 462.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.769e-05/0.365, allocations: 64 kB / 462.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.3679, allocations: 1.646 MB / 464 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01514/0.3831, allocations: 10.6 MB / 474.6 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.3846, allocations: 1.053 MB / 475.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007151/0.3853, allocations: 359.4 kB / 476 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.3854, allocations: 16.62 kB / 476 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.3855, allocations: 43.22 kB / 476 MB, free: 13.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.916e-06/0.3855, allocations: 0 / 476 MB, free: 13.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.006424/0.3919, allocations: 2.965 MB / 479 MB, free: 10 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/0.392, allocations: 167.2 kB / 479.2 MB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/0.3958, allocations: 2.202 MB / 481.4 MB, free: 7.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.3959, allocations: 41.7 kB / 481.4 MB, free: 7.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.3972, allocations: 1.51 MB / 482.9 MB, free: 6.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.3975, allocations: 357 kB / 483.3 MB, free: 5.656 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004631/0.398, allocations: 331.3 kB / 483.6 MB, free: 5.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.913e-05/0.3981, allocations: 301.1 kB / 483.9 MB, free: 5.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007037/0.3988, allocations: 372.7 kB / 484.2 MB, free: 4.664 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.4, allocations: 1.235 MB / 485.5 MB, free: 3.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.4021, allocations: 1.726 MB / 487.2 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.109e-05/0.4021, allocations: 8 kB / 487.2 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003205/0.4053, allocations: 1.848 MB / 489.1 MB, free: 14.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.4054, allocations: 19.98 kB / 489.1 MB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.533e-05/0.4054, allocations: 32 kB / 489.1 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/0.406, allocations: 155.6 kB / 489.3 MB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.4072, allocations: 411.2 kB / 489.7 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/0.4113, allocations: 5.767 MB / 495.4 MB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.4131, allocations: 103.9 kB / 495.5 MB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.4132, allocations: 88 kB / 495.6 MB, free: 7.852 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001361/0.4146, allocations: 0.7265 MB / 496.3 MB, free: 7.121 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001118/0.4157, allocations: 1.227 MB / 497.6 MB, free: 5.477 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001918/0.4177, allocations: 1.703 MB / 499.3 MB, free: 3.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.199e-05/0.4177, allocations: 8 kB / 499.3 MB, free: 3.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.003272/0.421, allocations: 1.824 MB / 0.4894 GB, free: 1.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.421, allocations: 22.66 kB / 0.4894 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.674e-05/0.4211, allocations: 28 kB / 0.4894 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004724/0.4215, allocations: 156.1 kB / 0.4896 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.4227, allocations: 403.3 kB / 0.4899 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00414/0.4268, allocations: 5.765 MB / 0.4956 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.4284, allocations: 96.08 kB / 0.4957 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.4286, allocations: 88 kB / 0.4957 GB, free: 10.4 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.000369/0.429, allocations: 323.3 kB / 0.4961 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005766/0.4295, allocations: 238.5 kB / 0.4963 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.4314, allocations: 0.9184 MB / 0.4972 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.4314, allocations: 8 kB / 0.4972 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.4315, allocations: 11.94 kB / 0.4972 GB, free: 8.879 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4315, allocations: 3.984 kB / 0.4972 GB, free: 8.875 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005426/0.4369, allocations: 3.118 MB / 0.5002 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.4369, allocations: 12.06 kB / 0.5003 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/0.4375, allocations: 151.8 kB / 0.5004 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004414/0.438, allocations: 127.5 kB / 0.5005 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.707e-05/0.4381, allocations: 27.98 kB / 0.5006 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004056/0.4421, allocations: 5.715 MB / 0.5061 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.4422, allocations: 7.938 kB / 0.5061 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.4445, allocations: 1.501 MB / 0.5076 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4456, allocations: 395.5 kB / 0.508 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000559/0.4461, allocations: 23.94 kB / 0.508 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.4473, allocations: 59.95 kB / 0.5081 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.4475, allocations: 80.28 kB / 0.5081 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.925e-05/0.4475, allocations: 28 kB / 0.5082 GB, free: 12.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00265/0.4502, allocations: 1.458 MB / 0.5096 GB, free: 11.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4502, allocations: 0 / 0.5096 GB, free: 11.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00372/0.4539, allocations: 0.9414 MB / 0.5105 GB, free: 10.4 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.002926/0.4569, allocations: 2.103 MB / 0.5126 GB, free: 8.188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004238/0.4611, allocations: 2.707 MB / 0.5152 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.4612, allocations: 4 kB / 0.5152 GB, free: 5.383 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.4622, allocations: 0.813 MB / 0.516 GB, free: 4.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003297/0.4655, allocations: 0.5992 MB / 0.5166 GB, free: 3.934 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/0.4937, allocations: 18 MB / 0.5342 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2121/0.7059, allocations: 1.563 MB / 0.5357 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001558/0.7075, allocations: 318.8 kB / 0.536 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/0.7088, allocations: 1.058 MB / 0.537 GB, free: 122.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.7088, allocations: 0 / 0.537 GB, free: 122.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08487/0.7937, allocations: 47.49 MB / 0.5834 GB, free: 84.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.7, allocations: 5.656 kB / 0.5834 GB, free: 84.86 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