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.001091/0.001091, allocations: 103.4 kB / 17.16 MB, free: 6.32 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.001194/0.001194, allocations: 190 kB / 18.07 MB, free: 5.414 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.331/1.331, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001028/0.001028, allocations: 51.92 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08192, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01105/0.093, allocations: 12.01 MB / 338.7 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005249/0.09827, allocations: 3.27 MB / 342 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008103/0.09914, allocations: 35.94 kB / 342 MB, free: 5.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.1005, allocations: 0.5826 MB / 342.6 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.1018, allocations: 0.6283 MB / 343.2 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005995/0.1024, allocations: 351.8 kB / 343.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001909/0.1044, allocations: 2.28 MB / 345.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009916/0.1054, allocations: 0.8544 MB / 346.7 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009533/0.1063, allocations: 0.8089 MB / 347.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007898/0.1071, allocations: 0.9253 MB / 348.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.1073, allocations: 140 kB / 348.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003716/0.1077, allocations: 180 kB / 348.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.108, allocations: 374.3 kB / 349.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008065/0.1088, allocations: 0.9911 MB / 350.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002046/0.1109, allocations: 2.725 MB / 352.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1109, allocations: 0 / 352.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1109, allocations: 0 / 352.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.1109, allocations: 0 / 352.8 MB, free: 10.51 MB / 302.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.00349/0.1144, allocations: 2.152 MB / 355 MB, free: 8.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.1145, allocations: 8.031 kB / 355 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002543/0.1147, allocations: 224.1 kB / 355.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008967/0.1156, allocations: 286.3 kB / 355.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.1172, allocations: 1.107 MB / 356.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.498e-05/0.1173, allocations: 119.2 kB / 356.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.1175, allocations: 159.9 kB / 356.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.1199, allocations: 1.504 MB / 358.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.196e-05/0.1199, allocations: 11.91 kB / 358.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.1201, allocations: 60 kB / 358.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.1201, allocations: 40 kB / 358.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002026/0.1221, allocations: 1.045 MB / 359.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007843/0.13, allocations: 6.3 MB / 365.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1315, allocations: 0.6189 MB / 366.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008331/0.1324, allocations: 470.3 kB / 366.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.113e-05/0.1324, allocations: 4.562 kB / 366.9 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.1325, allocations: 43.12 kB / 367 MB, free: 11.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.175e-06/0.1325, allocations: 4 kB / 367 MB, free: 11.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004675/0.1372, allocations: 2.364 MB / 369.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/0.1372, allocations: 111.5 kB / 369.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.1389, allocations: 1.306 MB / 370.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.1389, allocations: 37.7 kB / 370.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/0.1395, allocations: 0.8492 MB / 371.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.1397, allocations: 264.3 kB / 371.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/0.1399, allocations: 206.7 kB / 372.1 MB, free: 6.578 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1401, allocations: 349.9 kB / 372.4 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005433/0.1406, allocations: 282.5 kB / 372.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000813/0.1414, allocations: 0.7381 MB / 373.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1429, allocations: 1.092 MB / 374.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1429, allocations: 4 kB / 374.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002181/0.1451, allocations: 1.26 MB / 375.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1451, allocations: 11.98 kB / 375.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.1451, allocations: 16 kB / 375.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004591/0.1456, allocations: 142.9 kB / 376 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007921/0.1464, allocations: 247.6 kB / 376.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1397/0.2861, allocations: 4.267 MB / 380.5 MB, free: 48.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.2873, allocations: 67.02 kB / 380.5 MB, free: 48.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.448e-05/0.2874, allocations: 58.98 kB / 380.6 MB, free: 48.69 MB / 318.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.0005704/0.288, allocations: 355.8 kB / 380.9 MB, free: 48.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.2881, allocations: 137.4 kB / 381.1 MB, free: 48.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/0.2899, allocations: 0.8281 MB / 381.9 MB, free: 48.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.2899, allocations: 10.06 kB / 381.9 MB, free: 48.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2899, allocations: 1.781 kB / 381.9 MB, free: 48.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.29, allocations: 3.859 kB / 381.9 MB, free: 48.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003577/0.2935, allocations: 2.333 MB / 384.2 MB, free: 47.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.2936, allocations: 4.406 kB / 384.3 MB, free: 47.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/0.2941, allocations: 129.6 kB / 384.4 MB, free: 47.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004181/0.2945, allocations: 135.2 kB / 384.5 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.2946, allocations: 17.41 kB / 384.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002915/0.2975, allocations: 4.395 MB / 388.9 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.2975, allocations: 8.844 kB / 388.9 MB, free: 43.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002178/0.2997, allocations: 1.299 MB / 390.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004268/0.3002, allocations: 277.4 kB / 390.5 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3003, allocations: 21.06 kB / 390.5 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005932/0.3009, allocations: 35.88 kB / 390.6 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.3011, allocations: 65.61 kB / 390.6 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.3011, allocations: 22.88 kB / 390.6 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001369/0.3025, allocations: 0.8795 MB / 391.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3025, allocations: 0 / 391.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001363/0.3039, allocations: 327.1 kB / 391.8 MB, free: 41.99 MB / 318.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.002526/0.3064, allocations: 1.892 MB / 393.7 MB, free: 40.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.3083, allocations: 1.11 MB / 394.8 MB, free: 40.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3083, allocations: 0 / 394.8 MB, free: 40.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008932/0.3092, allocations: 0.7142 MB / 395.6 MB, free: 39.65 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.3109, allocations: 344.5 kB / 395.9 MB, free: 39.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01794/0.3289, allocations: 13.65 MB / 409.5 MB, free: 30.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.3295, allocations: 1.214 MB / 410.8 MB, free: 29.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007135/0.3302, allocations: 175.6 kB / 410.9 MB, free: 29.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005499/0.3307, allocations: 0.6086 MB / 411.5 MB, free: 28.41 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3307, allocations: 0 / 411.5 MB, free: 28.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.4322, allocations: 29.49 MB / 441 MB, free: 14.85 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.4325, allocations: 254.8 kB / 441.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/2.876, allocations: 0 / 441.3 MB, free: 14.59 MB / 334.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","../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