Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001332/0.001332, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001152/0.001152, allocations: 187 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 52.3 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08566, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2457/0.3314, allocations: 12.1 MB / 386.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007497/0.339, allocations: 3.305 MB / 390.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.341, allocations: 40.56 kB / 390.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002036/0.3431, allocations: 0.6645 MB / 390.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.3452, allocations: 0.7287 MB / 391.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008329/0.346, allocations: 403.2 kB / 391.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00282/0.3488, allocations: 2.407 MB / 394.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.3504, allocations: 0.9997 MB / 395.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.3522, allocations: 0.9105 MB / 396.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.3534, allocations: 0.9848 MB / 397.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00034/0.3537, allocations: 233.2 kB / 397.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005987/0.3543, allocations: 269.4 kB / 397.7 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003313/0.3547, allocations: 460.7 kB / 398.1 MB, free: 184 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3559, allocations: 1.076 MB / 399.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004018/0.3599, allocations: 2.826 MB / 402 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.36, allocations: 0 / 402 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.36, allocations: 0 / 402 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.189e-05/0.36, allocations: 2.922 kB / 402 MB, free: 14.42 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004642/0.3647, allocations: 2.162 MB / 404.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3647, allocations: 9.625 kB / 404.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002644/0.365, allocations: 225.6 kB / 404.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009155/0.3659, allocations: 277.6 kB / 404.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.3678, allocations: 1.123 MB / 405.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.3679, allocations: 119.3 kB / 405.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002209/0.3681, allocations: 157.4 kB / 406.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002766/0.3709, allocations: 1.508 MB / 407.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.331e-05/0.371, allocations: 11.48 kB / 407.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/0.3711, allocations: 66.12 kB / 407.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-05/0.3712, allocations: 37.91 kB / 407.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002237/0.3734, allocations: 1.045 MB / 408.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009329/0.3828, allocations: 6.229 MB / 415 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.3844, allocations: 0.6261 MB / 415.6 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009765/0.3854, allocations: 468 kB / 416.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/0.3854, allocations: 10.88 kB / 416.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.3855, allocations: 41.44 kB / 416.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.935e-06/0.3855, allocations: 0 / 416.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005127/0.3906, allocations: 2.364 MB / 418.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.853e-05/0.3907, allocations: 111.7 kB / 418.6 MB, free: 2.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/0.3928, allocations: 1.309 MB / 419.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.899e-05/0.3929, allocations: 36.89 kB / 419.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007197/0.3936, allocations: 0.8543 MB / 420.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.3938, allocations: 255.8 kB / 421 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.3941, allocations: 208.6 kB / 421.2 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3943, allocations: 345.9 kB / 421.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/0.3949, allocations: 290.5 kB / 421.9 MB, free: 120 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009426/0.3958, allocations: 0.7381 MB / 422.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.3974, allocations: 1.084 MB / 423.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.3974, allocations: 4 kB / 423.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002475/0.3999, allocations: 1.264 MB / 425 MB, free: 12.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.3999, allocations: 15.94 kB / 425 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.4, allocations: 16 kB / 425 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005749/0.4006, allocations: 138.7 kB / 425.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008152/0.4014, allocations: 255.6 kB / 425.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004245/0.4056, allocations: 4.634 MB / 430 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4067, allocations: 63.81 kB / 430.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.428e-05/0.4068, allocations: 55.98 kB / 430.1 MB, free: 6.988 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007157/0.4075, allocations: 361.4 kB / 430.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.4077, allocations: 134.3 kB / 430.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.4096, allocations: 0.8256 MB / 431.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.4096, allocations: 11.94 kB / 431.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4096, allocations: 7.984 kB / 431.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4096, allocations: 0 / 431.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.4137, allocations: 2.327 MB / 433.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4138, allocations: 4 kB / 433.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000554/0.4143, allocations: 131.8 kB / 433.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004381/0.4148, allocations: 130.8 kB / 434 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.4148, allocations: 23.98 kB / 434.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004279/0.4191, allocations: 4.783 MB / 438.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4192, allocations: 7.938 kB / 438.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.4215, allocations: 1.296 MB / 440.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006031/0.4221, allocations: 287.3 kB / 440.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.4223, allocations: 16 kB / 440.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.4229, allocations: 39.97 kB / 440.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.423, allocations: 64.36 kB / 440.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.4231, allocations: 27.98 kB / 440.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.4244, allocations: 0.8781 MB / 441.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4244, allocations: 0 / 441.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001311/0.4257, allocations: 328 kB / 441.8 MB, free: 10.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002575/0.4283, allocations: 1.881 MB / 443.7 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.4301, allocations: 1.133 MB / 444.8 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4301, allocations: 8 kB / 444.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009165/0.431, allocations: 0.6913 MB / 445.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.4325, allocations: 374 kB / 445.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.4491, allocations: 11.65 MB / 457.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007575/0.4499, allocations: 1.21 MB / 458.7 MB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006046/0.4505, allocations: 179.6 kB / 458.9 MB, free: 8.656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007105/0.4512, allocations: 0.6125 MB / 459.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4512, allocations: 0 / 459.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07473/0.5259, allocations: 31.64 MB / 491.1 MB, free: 8.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.69, allocations: 0 / 491.1 MB, free: 8.297 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches