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.001148/0.001149, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001307/0.001307, allocations: 192 kB / 18.51 MB, free: 4.508 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.339/1.339, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001249/0.001249, allocations: 51.94 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.07681, allocations: 46.62 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01292/0.08977, allocations: 12.1 MB / 339.5 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006242/0.09606, allocations: 3.309 MB / 342.8 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.09797, allocations: 35.94 kB / 342.8 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002038/0.1, allocations: 0.6556 MB / 343.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002588/0.1026, allocations: 0.7403 MB / 344.2 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1038, allocations: 403.5 kB / 344.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00285/0.1067, allocations: 2.398 MB / 347 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.1081, allocations: 0.9892 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.1094, allocations: 0.891 MB / 348.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001343/0.1108, allocations: 0.98 MB / 349.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003999/0.1112, allocations: 228 kB / 350.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006237/0.1118, allocations: 268 kB / 350.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003623/0.1122, allocations: 462.3 kB / 350.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.1135, allocations: 1.077 MB / 351.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002398/0.1159, allocations: 2.791 MB / 354.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1159, allocations: 3.984 kB / 354.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1159, allocations: 0 / 354.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.429e-05/0.116, allocations: 4 kB / 354.7 MB, free: 8.898 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.003879/0.1199, allocations: 2.16 MB / 356.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1199, allocations: 8.031 kB / 356.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.1202, allocations: 224.1 kB / 357.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008952/0.1211, allocations: 286.3 kB / 357.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.1227, allocations: 1.091 MB / 358.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.249e-05/0.1228, allocations: 119.2 kB / 358.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.123, allocations: 159.9 kB / 358.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/0.1253, allocations: 1.508 MB / 360.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.119e-05/0.1254, allocations: 7.906 kB / 360.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.1256, allocations: 64 kB / 360.3 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.898e-05/0.1256, allocations: 47.98 kB / 360.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.128, allocations: 1.045 MB / 361.4 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007985/0.136, allocations: 6.304 MB / 367.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.1375, allocations: 0.6112 MB / 368.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008985/0.1384, allocations: 474.3 kB / 368.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.1385, allocations: 4.562 kB / 368.8 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.1385, allocations: 47.06 kB / 368.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.996e-06/0.1385, allocations: 0 / 368.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004927/0.1434, allocations: 2.364 MB / 371.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.1435, allocations: 111.5 kB / 371.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/0.1452, allocations: 1.306 MB / 372.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.1453, allocations: 41.7 kB / 372.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005233/0.1458, allocations: 0.8492 MB / 373.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.146, allocations: 260.3 kB / 373.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.1463, allocations: 210.7 kB / 373.9 MB, free: 4.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1464, allocations: 345.9 kB / 374.3 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.1469, allocations: 282.5 kB / 374.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007978/0.1477, allocations: 0.7381 MB / 375.3 MB, free: 3.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.1492, allocations: 1.088 MB / 376.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.1492, allocations: 4 kB / 376.4 MB, free: 2.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002386/0.1516, allocations: 1.264 MB / 377.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.1517, allocations: 11.98 kB / 377.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.1517, allocations: 16 kB / 377.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/0.1522, allocations: 135 kB / 377.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008079/0.153, allocations: 255.7 kB / 378.1 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1244/0.2774, allocations: 4.644 MB / 382.7 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009565/0.2784, allocations: 59.7 kB / 382.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.786e-05/0.2785, allocations: 55.95 kB / 382.8 MB, free: 47.14 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.0004498/0.2789, allocations: 354.2 kB / 383.2 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.2791, allocations: 140.8 kB / 383.3 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001629/0.2807, allocations: 0.8295 MB / 384.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.2807, allocations: 7.094 kB / 384.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2807, allocations: 1.062 kB / 384.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2807, allocations: 5.078 kB / 384.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.2837, allocations: 2.33 MB / 386.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.2837, allocations: 9.906 kB / 386.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/0.2842, allocations: 128.1 kB / 386.6 MB, free: 45.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003835/0.2846, allocations: 131.5 kB / 386.7 MB, free: 45.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.2847, allocations: 21.27 kB / 386.8 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002701/0.2874, allocations: 4.783 MB / 391.5 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2874, allocations: 10.94 kB / 391.6 MB, free: 41.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.2893, allocations: 1.294 MB / 392.8 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.2896, allocations: 283.6 kB / 393.1 MB, free: 40.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.2897, allocations: 17.84 kB / 393.1 MB, free: 40.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005532/0.2903, allocations: 40.02 kB / 393.2 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.2904, allocations: 66.22 kB / 393.2 MB, free: 40.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.523e-05/0.2904, allocations: 24.48 kB / 393.3 MB, free: 40.37 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009999/0.2914, allocations: 0.8745 MB / 394.1 MB, free: 40 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2914, allocations: 1.469 kB / 394.1 MB, free: 40 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000968/0.2924, allocations: 329.9 kB / 394.5 MB, free: 39.97 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.002073/0.2945, allocations: 1.887 MB / 396.4 MB, free: 38.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.2961, allocations: 1.142 MB / 397.5 MB, free: 38.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2961, allocations: 1.406 kB / 397.5 MB, free: 38.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007828/0.2969, allocations: 0.7125 MB / 398.2 MB, free: 37.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.2983, allocations: 376.4 kB / 398.6 MB, free: 37.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.3108, allocations: 13.05 MB / 411.6 MB, free: 28.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.3113, allocations: 1.214 MB / 412.8 MB, free: 27.51 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000549/0.3119, allocations: 171.8 kB / 413 MB, free: 27.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004903/0.3124, allocations: 0.6125 MB / 413.6 MB, free: 26.72 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3124, allocations: 0 / 413.6 MB, free: 26.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/0.4589, allocations: 30.53 MB / 444.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/16.24, allocations: 0 / 444.2 MB, free: 12.08 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","/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