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.001715/0.001715, allocations: 104.9 kB / 17.58 MB, free: 5.422 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.002087/0.002087, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.475/1.475, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001233/0.001233, allocations: 56.14 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08607/0.08732, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01208/0.09945, allocations: 12.09 MB / 339.5 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005548/0.105, allocations: 3.309 MB / 342.8 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1065, allocations: 35.94 kB / 342.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001902/0.1084, allocations: 0.6634 MB / 343.5 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00231/0.1107, allocations: 0.7286 MB / 344.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1117, allocations: 403.5 kB / 344.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002925/0.1147, allocations: 2.394 MB / 347 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.1161, allocations: 0.997 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.1173, allocations: 0.891 MB / 348.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001296/0.1186, allocations: 0.9878 MB / 349.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004514/0.1191, allocations: 228 kB / 350.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007821/0.1199, allocations: 272 kB / 350.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004604/0.1203, allocations: 450.3 kB / 350.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.1218, allocations: 1.077 MB / 351.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00265/0.1244, allocations: 2.791 MB / 354.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1244, allocations: 3.984 kB / 354.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1244, allocations: 0 / 354.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.666e-05/0.1245, allocations: 0 / 354.7 MB, free: 8.902 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.003616/0.1281, allocations: 2.164 MB / 356.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1282, allocations: 8.031 kB / 356.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002478/0.1284, allocations: 224.1 kB / 357.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/0.1293, allocations: 290.3 kB / 357.4 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.1308, allocations: 1.095 MB / 358.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.979e-05/0.1309, allocations: 123.2 kB / 358.6 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001986/0.1311, allocations: 163.9 kB / 358.7 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/0.1335, allocations: 1.5 MB / 360.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.755e-05/0.1335, allocations: 11.91 kB / 360.2 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.1337, allocations: 60 kB / 360.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.833e-05/0.1337, allocations: 40 kB / 360.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.1357, allocations: 1.053 MB / 361.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00863/0.1444, allocations: 6.304 MB / 367.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.1459, allocations: 0.6073 MB / 368.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009251/0.1468, allocations: 466.2 kB / 368.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.1469, allocations: 8.562 kB / 368.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.147, allocations: 43.06 kB / 368.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 3.145e-06/0.147, allocations: 0 / 368.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005063/0.152, allocations: 2.368 MB / 371.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.709e-05/0.1521, allocations: 115.5 kB / 371.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.1541, allocations: 1.306 MB / 372.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.1541, allocations: 37.7 kB / 372.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006109/0.1548, allocations: 0.8492 MB / 373.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001946/0.155, allocations: 260.3 kB / 373.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/0.1553, allocations: 214.7 kB / 374 MB, free: 4.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1554, allocations: 341.9 kB / 374.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005847/0.156, allocations: 286.5 kB / 374.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008448/0.1568, allocations: 0.742 MB / 375.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.1584, allocations: 1.088 MB / 376.4 MB, free: 2.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.1584, allocations: 7.984 kB / 376.4 MB, free: 2.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002449/0.1609, allocations: 1.252 MB / 377.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.1609, allocations: 15.98 kB / 377.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.1609, allocations: 16 kB / 377.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.1615, allocations: 139 kB / 377.8 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000822/0.1623, allocations: 255.6 kB / 378.1 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1443/0.3066, allocations: 4.641 MB / 382.7 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.3077, allocations: 55.62 kB / 382.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.148e-05/0.3077, allocations: 55.2 kB / 382.8 MB, free: 47.46 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.0004859/0.3082, allocations: 354.2 kB / 383.2 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.3084, allocations: 138.3 kB / 383.3 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.3101, allocations: 0.8304 MB / 384.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3101, allocations: 8.375 kB / 384.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3102, allocations: 2.562 kB / 384.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.3102, allocations: 5.672 kB / 384.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.3134, allocations: 2.332 MB / 386.5 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3134, allocations: 8.266 kB / 386.5 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/0.314, allocations: 127.9 kB / 386.6 MB, free: 46.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004232/0.3144, allocations: 132.7 kB / 386.7 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.3145, allocations: 18.62 kB / 386.8 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002997/0.3175, allocations: 4.793 MB / 391.6 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.3175, allocations: 8.938 kB / 391.6 MB, free: 41.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.3195, allocations: 1.292 MB / 392.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003672/0.3199, allocations: 281.7 kB / 393.1 MB, free: 40.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.3201, allocations: 16.7 kB / 393.1 MB, free: 40.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005892/0.3207, allocations: 45.66 kB / 393.2 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3208, allocations: 62.73 kB / 393.3 MB, free: 40.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.3208, allocations: 26.94 kB / 393.3 MB, free: 40.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.322, allocations: 0.8801 MB / 394.2 MB, free: 40.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.322, allocations: 0 / 394.2 MB, free: 40.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001104/0.3231, allocations: 326.4 kB / 394.5 MB, free: 40.3 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.00226/0.3253, allocations: 1.882 MB / 396.4 MB, free: 39.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.3272, allocations: 1.141 MB / 397.5 MB, free: 38.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3272, allocations: 2.031 kB / 397.5 MB, free: 38.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008514/0.3281, allocations: 0.7132 MB / 398.2 MB, free: 37.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.3297, allocations: 369.9 kB / 398.6 MB, free: 37.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.3451, allocations: 13.05 MB / 411.6 MB, free: 29.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.3457, allocations: 1.214 MB / 412.8 MB, free: 27.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006949/0.3464, allocations: 176.4 kB / 413 MB, free: 27.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005416/0.347, allocations: 0.6086 MB / 413.6 MB, free: 27.14 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.347, allocations: 0.5469 kB / 413.6 MB, free: 27.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05836/0.4053, allocations: 30.53 MB / 444.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.7, allocations: 0 / 444.1 MB, free: 12.51 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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