Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 104.7 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 47.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2878, allocations: 49.45 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01301/0.3009, allocations: 11.74 MB / 412 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006374/0.3073, allocations: 3.222 MB / 415.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.3092, allocations: 39.88 kB / 415.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002668/0.3119, allocations: 0.644 MB / 415.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003103/0.3151, allocations: 0.6704 MB / 416.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.3166, allocations: 403.5 kB / 417 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003674/0.3203, allocations: 2.254 MB / 419.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.3223, allocations: 0.9811 MB / 420.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.324, allocations: 0.8405 MB / 421 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.3258, allocations: 0.9217 MB / 422 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006594/0.3265, allocations: 216 kB / 422.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.3275, allocations: 260 kB / 422.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005748/0.3281, allocations: 426.5 kB / 422.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001752/0.3299, allocations: 1.019 MB / 423.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003719/0.3336, allocations: 2.682 MB / 426.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3337, allocations: 0 / 426.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3337, allocations: 0 / 426.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.3338, allocations: 0 / 426.5 MB, free: 14.35 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004886/0.3387, allocations: 2.064 MB / 428.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3387, allocations: 11.97 kB / 428.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004378/0.3392, allocations: 216.1 kB / 428.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009701/0.3402, allocations: 258.5 kB / 429.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.3423, allocations: 1.044 MB / 430.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.3425, allocations: 123.2 kB / 430.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003053/0.3428, allocations: 159.9 kB / 430.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/0.3457, allocations: 1.48 MB / 431.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-05/0.3458, allocations: 11.91 kB / 431.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.3459, allocations: 67.98 kB / 432 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.161e-05/0.3459, allocations: 40 kB / 432 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.3479, allocations: 0.9707 MB / 433 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008534/0.3565, allocations: 6.531 MB / 439.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/0.3573, allocations: 396.6 kB / 439.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.3578, allocations: 222 kB / 440.1 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.3578, allocations: 4.438 kB / 440.1 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005103/0.3583, allocations: 272.8 kB / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.414e-06/0.3583, allocations: 0 / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003396/0.3617, allocations: 1.758 MB / 442.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.599e-05/0.3619, allocations: 166.8 kB / 442.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001892/0.3638, allocations: 1.273 MB / 443.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.3638, allocations: 37.7 kB / 443.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006663/0.3645, allocations: 0.8712 MB / 444.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.3647, allocations: 209.2 kB / 444.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002782/0.365, allocations: 214.7 kB / 444.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3651, allocations: 353.9 kB / 445.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000466/0.3656, allocations: 234.5 kB / 445.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007961/0.3664, allocations: 0.7956 MB / 446.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.3678, allocations: 1.126 MB / 447.4 MB, free: 8.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.3679, allocations: 8 kB / 447.4 MB, free: 8.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001992/0.3699, allocations: 1.165 MB / 448.6 MB, free: 6.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.263e-05/0.3699, allocations: 49.69 kB / 448.6 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.989e-05/0.37, allocations: 23.94 kB / 448.6 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.3702, allocations: 58.33 kB / 448.7 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/0.371, allocations: 271.5 kB / 449 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.3732, allocations: 2.773 MB / 451.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3742, allocations: 71.91 kB / 451.8 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.607e-05/0.3743, allocations: 56 kB / 451.9 MB, free: 3.414 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006091/0.3749, allocations: 361.4 kB / 452.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00023/0.3752, allocations: 134.3 kB / 452.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.3763, allocations: 0.545 MB / 452.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3763, allocations: 8 kB / 452.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3763, allocations: 4 kB / 452.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3763, allocations: 3.984 kB / 452.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.3795, allocations: 1.87 MB / 454.8 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.3795, allocations: 4 kB / 454.8 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004374/0.3799, allocations: 107.8 kB / 454.9 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001651/0.3801, allocations: 45.64 kB / 454.9 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.3802, allocations: 16 kB / 454.9 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001853/0.382, allocations: 2.749 MB / 457.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.3821, allocations: 7.938 kB / 457.7 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.3835, allocations: 0.9239 MB / 458.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/0.3841, allocations: 251.5 kB / 458.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/0.3843, allocations: 16 kB / 458.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006301/0.3849, allocations: 35.91 kB / 458.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.3851, allocations: 59.81 kB / 459 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.392e-05/0.3851, allocations: 16 kB / 459 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001514/0.3866, allocations: 0.8461 MB / 459.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3866, allocations: 0 / 459.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001234/0.3879, allocations: 300 kB / 460.1 MB, free: 10.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00187/0.3898, allocations: 1.516 MB / 461.6 MB, free: 9.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.3915, allocations: 0.9293 MB / 462.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3915, allocations: 0 / 462.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007054/0.3922, allocations: 473.9 kB / 463 MB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.3939, allocations: 336.1 kB / 463.4 MB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.4101, allocations: 10.86 MB / 474.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008079/0.4109, allocations: 1.178 MB / 475.4 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006089/0.4116, allocations: 167.3 kB / 475.6 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006607/0.4122, allocations: 0.5696 MB / 476.1 MB, free: 9.605 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4122, allocations: 4 kB / 476.1 MB, free: 9.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6298/1.042, allocations: 28.16 MB / 0.4925 GB, free: 13.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.53/23.57, allocations: 15.94 kB / 0.4925 GB, free: 13.79 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches