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.0007433/0.0007433, allocations: 93.64 kB / 17.3 MB, free: 6.391 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.0007515/0.0007515, allocations: 173.8 kB / 18.2 MB, free: 5.551 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.291/1.291, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005323/0.0005324, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09117, allocations: 47.58 MB / 329.1 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01145/0.1027, allocations: 11.43 MB / 340.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005805/0.1085, allocations: 3.247 MB / 343.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.1096, allocations: 39.88 kB / 343.8 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.1111, allocations: 0.5709 MB / 344.3 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001587/0.1127, allocations: 0.6206 MB / 345 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006358/0.1134, allocations: 355.7 kB / 345.3 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002153/0.1155, allocations: 2.284 MB / 347.6 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.1166, allocations: 0.8466 MB / 348.4 MB, free: 144 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1177, allocations: 0.7425 MB / 349.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009192/0.1186, allocations: 0.8512 MB / 350 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.1188, allocations: 108 kB / 350.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003772/0.1192, allocations: 148 kB / 350.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.1195, allocations: 326.4 kB / 350.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008656/0.1203, allocations: 0.9576 MB / 351.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.1227, allocations: 2.642 MB / 354.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1227, allocations: 0 / 354.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1227, allocations: 3.938 kB / 354.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.1227, allocations: 0 / 354.2 MB, free: 10.34 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.003214/0.126, allocations: 1.844 MB / 356.1 MB, free: 8.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.126, allocations: 8.031 kB / 356.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002575/0.1263, allocations: 228.1 kB / 356.3 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008388/0.1271, allocations: 286.3 kB / 356.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.1287, allocations: 1.099 MB / 357.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.598e-05/0.1288, allocations: 131.2 kB / 357.8 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001986/0.129, allocations: 155.9 kB / 357.9 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.1315, allocations: 1.512 MB / 359.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.686e-05/0.1315, allocations: 7.906 kB / 359.5 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001192/0.1316, allocations: 67.98 kB / 359.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.864e-05/0.1317, allocations: 40 kB / 359.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.1337, allocations: 1.076 MB / 360.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008153/0.1419, allocations: 6.308 MB / 367 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.1434, allocations: 0.631 MB / 367.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009432/0.1444, allocations: 482.1 kB / 368.1 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.1445, allocations: 16.55 kB / 368.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.1445, allocations: 43.06 kB / 368.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.896e-06/0.1445, allocations: 0 / 368.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005227/0.1498, allocations: 2.466 MB / 370.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/0.1499, allocations: 107.5 kB / 370.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.1518, allocations: 1.306 MB / 372 MB, free: 7.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.669e-05/0.1518, allocations: 41.7 kB / 372 MB, free: 7.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006483/0.1525, allocations: 0.8453 MB / 372.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.1527, allocations: 264.3 kB / 373.1 MB, free: 6.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.1528, allocations: 93.66 kB / 373.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.153, allocations: 345.9 kB / 373.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000602/0.1536, allocations: 294.5 kB / 373.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008948/0.1545, allocations: 0.746 MB / 374.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.1561, allocations: 1.119 MB / 375.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.1561, allocations: 4 kB / 375.7 MB, free: 3.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002464/0.1586, allocations: 1.299 MB / 377 MB, free: 2.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.488e-05/0.1586, allocations: 12 kB / 377 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.1587, allocations: 16 kB / 377 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000532/0.1592, allocations: 142.6 kB / 377.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008434/0.1601, allocations: 267.5 kB / 377.5 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1428/0.3028, allocations: 4.313 MB / 381.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.304, allocations: 61.77 kB / 381.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.3042, allocations: 53.09 kB / 381.9 MB, free: 47.68 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.0007836/0.305, allocations: 361.5 kB / 382.2 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/0.3053, allocations: 139.3 kB / 382.4 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/0.3075, allocations: 0.8669 MB / 383.2 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.3076, allocations: 6.969 kB / 383.2 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.3076, allocations: 2.594 kB / 383.2 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.3076, allocations: 7.703 kB / 383.2 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0043/0.3119, allocations: 2.378 MB / 385.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.3119, allocations: 4.828 kB / 385.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/0.3125, allocations: 130.3 kB / 385.8 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005791/0.3131, allocations: 145.9 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.87e-05/0.3132, allocations: 18.09 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/0.3168, allocations: 4.459 MB / 390.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.3169, allocations: 3.469 kB / 390.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.3195, allocations: 1.355 MB / 391.7 MB, free: 41.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006359/0.3202, allocations: 280.7 kB / 392 MB, free: 41.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.3205, allocations: 22.06 kB / 392 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007546/0.3213, allocations: 42.19 kB / 392.1 MB, free: 41.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3214, allocations: 65.38 kB / 392.1 MB, free: 41.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.333e-05/0.3215, allocations: 23.09 kB / 392.2 MB, free: 41.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001702/0.3232, allocations: 0.876 MB / 393 MB, free: 41.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3232, allocations: 0 / 393 MB, free: 41.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001366/0.3246, allocations: 331.1 kB / 393.4 MB, free: 41.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.002799/0.3274, allocations: 1.925 MB / 395.3 MB, free: 40.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.3294, allocations: 1.135 MB / 396.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3294, allocations: 1.375 kB / 396.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008587/0.3302, allocations: 0.731 MB / 397.2 MB, free: 38.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.3327, allocations: 333.4 kB / 397.5 MB, free: 38.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/0.3522, allocations: 13.94 MB / 411.4 MB, free: 29.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006706/0.353, allocations: 1.215 MB / 412.6 MB, free: 27.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007575/0.3537, allocations: 175.6 kB / 412.8 MB, free: 27.61 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/0.3544, allocations: 0.6125 MB / 413.4 MB, free: 26.99 MB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3544, allocations: 0 / 413.4 MB, free: 26.99 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04736/0.4017, allocations: 29.16 MB / 442.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.402, allocations: 254.3 kB / 442.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/2.852, allocations: 4 kB / 442.8 MB, free: 13.52 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