Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_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.001658/0.001658, allocations: 108.6 kB / 16.51 MB, free: 6.691 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.001801/0.001801, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.189/1.189, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 47.56 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08447/0.0855, allocations: 49.45 MB / 349.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01261/0.09814, allocations: 12.05 MB / 361.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005608/0.1038, allocations: 3.246 MB / 364.8 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.1052, allocations: 35.94 kB / 364.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.1071, allocations: 0.5748 MB / 365.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.1088, allocations: 0.6206 MB / 366 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006341/0.1095, allocations: 371.6 kB / 366.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001788/0.1112, allocations: 2.273 MB / 368.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009879/0.1122, allocations: 0.8544 MB / 369.5 MB, free: 400 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1401/0.2524, allocations: 0.8098 MB / 370.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001165/0.2535, allocations: 0.9274 MB / 371.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003043/0.2539, allocations: 139.6 kB / 371.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.2543, allocations: 176.2 kB / 371.6 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002559/0.2546, allocations: 369.8 kB / 371.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008798/0.2555, allocations: 0.9886 MB / 372.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00238/0.2579, allocations: 2.724 MB / 375.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2579, allocations: 1.875 kB / 375.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2579, allocations: 3.938 kB / 375.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.258, allocations: 0.625 kB / 375.7 MB, free: 11.87 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.00351/0.2615, allocations: 2.155 MB / 377.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2615, allocations: 9.969 kB / 377.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002377/0.2618, allocations: 223.2 kB / 378 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008597/0.2626, allocations: 284.5 kB / 378.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.2642, allocations: 1.11 MB / 379.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.089e-05/0.2643, allocations: 114.8 kB / 379.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.2645, allocations: 158.2 kB / 379.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.2667, allocations: 1.512 MB / 381.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.2668, allocations: 11.06 kB / 381.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.2669, allocations: 61.22 kB / 381.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/0.2669, allocations: 42.19 kB / 381.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.2688, allocations: 1.046 MB / 382.4 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/0.2753, allocations: 6.29 MB / 388.7 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.2767, allocations: 0.6088 MB / 389.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007868/0.2775, allocations: 458.9 kB / 389.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.2776, allocations: 11.53 kB / 389.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.2776, allocations: 41.88 kB / 389.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 1.884e-06/0.2776, allocations: 1.031 kB / 389.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.00436/0.282, allocations: 2.366 MB / 392.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.282, allocations: 111.2 kB / 392.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.2834, allocations: 1.302 MB / 393.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.2835, allocations: 38.98 kB / 393.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003596/0.2838, allocations: 0.8501 MB / 394.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.284, allocations: 266.8 kB / 394.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.2842, allocations: 208.7 kB / 394.9 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.2842, allocations: 346.7 kB / 395.2 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005142/0.2848, allocations: 291.6 kB / 395.5 MB, free: 396 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007363/0.2855, allocations: 0.7323 MB / 396.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.2869, allocations: 1.092 MB / 397.3 MB, free: 14.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.2869, allocations: 4.125 kB / 397.4 MB, free: 14.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002142/0.2891, allocations: 1.261 MB / 398.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2891, allocations: 12.41 kB / 398.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.2891, allocations: 16.88 kB / 398.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004411/0.2896, allocations: 134.5 kB / 398.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007338/0.2903, allocations: 253 kB / 399 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.2935, allocations: 4.278 MB / 403.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.2944, allocations: 60.75 kB / 403.4 MB, free: 9.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.168e-05/0.2945, allocations: 54.72 kB / 403.4 MB, free: 9.758 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.0005283/0.295, allocations: 353.7 kB / 403.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.2952, allocations: 137.5 kB / 403.9 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.2968, allocations: 0.8349 MB / 404.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2968, allocations: 6.562 kB / 404.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2968, allocations: 3.281 kB / 404.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.2969, allocations: 7.984 kB / 404.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.3002, allocations: 2.33 MB / 407.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3002, allocations: 11.97 kB / 407.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005423/0.3008, allocations: 127.3 kB / 407.2 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004053/0.3012, allocations: 136.5 kB / 407.3 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.159e-05/0.3013, allocations: 19.98 kB / 407.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/0.3048, allocations: 4.386 MB / 411.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3048, allocations: 10.62 kB / 411.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.307, allocations: 1.307 MB / 413.1 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.3074, allocations: 275.4 kB / 413.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.3076, allocations: 23.98 kB / 413.4 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.3082, allocations: 39.97 kB / 413.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.3083, allocations: 59.05 kB / 413.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.3084, allocations: 28 kB / 413.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.3095, allocations: 0.8795 MB / 414.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3095, allocations: 0 / 414.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001151/0.3107, allocations: 328 kB / 414.7 MB, free: 15.39 MB / 334.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.002443/0.3131, allocations: 1.895 MB / 416.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.3148, allocations: 1.106 MB / 417.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3148, allocations: 4 kB / 417.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009058/0.3157, allocations: 0.7058 MB / 418.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.3172, allocations: 340.1 kB / 418.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.3364, allocations: 13.67 MB / 432.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.3372, allocations: 1.213 MB / 433.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.3379, allocations: 175.6 kB / 433.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006835/0.3386, allocations: 0.6125 MB / 434.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3386, allocations: 0 / 434.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8901/1.229, allocations: 29.49 MB / 463.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000337/1.229, allocations: 251.8 kB / 464.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/3.728, allocations: 0 / 464.1 MB, free: 13.25 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches