Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001687/0.001687, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3152, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01003/0.3253, allocations: 7.983 MB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004886/0.3302, allocations: 2.652 MB / 419.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.3318, allocations: 20 kB / 419.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.3338, allocations: 0.5009 MB / 419.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00205/0.3359, allocations: 400.8 kB / 420.3 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007869/0.3367, allocations: 227.6 kB / 420.5 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.3386, allocations: 1.229 MB / 421.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.3398, allocations: 0.5331 MB / 422.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.3409, allocations: 0.4902 MB / 422.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.3419, allocations: 0.5095 MB / 423.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003054/0.3423, allocations: 112 kB / 423.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006168/0.3429, allocations: 164 kB / 423.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003121/0.3432, allocations: 235.1 kB / 423.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.3443, allocations: 0.5676 MB / 424.4 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002108/0.3464, allocations: 1.46 MB / 425.8 MB, free: 404 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3464, allocations: 3.938 kB / 425.8 MB, free: 400 kB / 334.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.3464, allocations: 4 kB / 425.8 MB, free: 396 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.126e-05/0.3465, allocations: 0 / 425.8 MB, free: 396 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003168/0.3497, allocations: 1.301 MB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3497, allocations: 12.03 kB / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.35, allocations: 131.5 kB / 427.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007902/0.3508, allocations: 175.5 kB / 427.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.352, allocations: 0.6532 MB / 428.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.3521, allocations: 66.12 kB / 428.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.3522, allocations: 87.91 kB / 428.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3537, allocations: 0.8184 MB / 429.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.3537, allocations: 0 / 429.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.147e-05/0.3538, allocations: 32 kB / 429.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.3539, allocations: 20 kB / 429.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.3551, allocations: 0.5504 MB / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.3601, allocations: 3.539 MB / 433.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/0.3606, allocations: 242.6 kB / 433.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.3609, allocations: 116.8 kB / 433.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.3609, allocations: 7.984 kB / 433.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001031/0.361, allocations: 42.56 kB / 433.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.361, allocations: 0 / 433.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002296/0.3633, allocations: 1.077 MB / 434.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.3634, allocations: 85.05 kB / 434.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009596/0.3644, allocations: 0.7624 MB / 435.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.3644, allocations: 29.7 kB / 435.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003487/0.3648, allocations: 0.5135 MB / 436.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.3649, allocations: 114.5 kB / 436.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.365, allocations: 122.2 kB / 436.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3652, allocations: 382.8 kB / 436.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.3655, allocations: 133.2 kB / 436.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.366, allocations: 450.2 kB / 437.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008143/0.3668, allocations: 0.6099 MB / 437.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3668, allocations: 4 kB / 437.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001084/0.3679, allocations: 0.6459 MB / 438.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.368, allocations: 11.94 kB / 438.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.368, allocations: 12 kB / 438.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.3682, allocations: 33.56 kB / 438.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004485/0.3686, allocations: 155.7 kB / 438.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.3697, allocations: 1.39 MB / 440.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.3702, allocations: 43.8 kB / 440.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.3703, allocations: 32 kB / 440.2 MB, free: 1.062 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003242/0.3706, allocations: 257.4 kB / 440.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.515e-05/0.3707, allocations: 71.16 kB / 440.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006594/0.3714, allocations: 329.9 kB / 440.8 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3714, allocations: 4 kB / 440.8 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3714, allocations: 3.938 kB / 440.8 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3714, allocations: 3.984 kB / 440.8 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.3731, allocations: 1.119 MB / 441.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3731, allocations: 8.031 kB / 442 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.3734, allocations: 55.91 kB / 442 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.391e-05/0.3735, allocations: 24.84 kB / 442 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.3735, allocations: 12 kB / 442 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009911/0.3745, allocations: 1.374 MB / 443.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3745, allocations: 0 / 443.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.3754, allocations: 0.5829 MB / 444 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.3757, allocations: 172.2 kB / 444.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.136e-05/0.3758, allocations: 11.98 kB / 444.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.3761, allocations: 19.98 kB / 444.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.053e-05/0.3762, allocations: 27.91 kB / 444.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3762, allocations: 12 kB / 444.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007359/0.3769, allocations: 0.5185 MB / 444.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3769, allocations: 0 / 444.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006488/0.3776, allocations: 172 kB / 444.9 MB, free: 12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.3788, allocations: 1.137 MB / 446.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000876/0.3797, allocations: 488.4 kB / 446.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3797, allocations: 0 / 446.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003506/0.3801, allocations: 239.2 kB / 446.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008847/0.381, allocations: 197.9 kB / 447 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008732/0.3897, allocations: 6.485 MB / 453.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.3903, allocations: 0.9526 MB / 454.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003716/0.3907, allocations: 98.14 kB / 454.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.3911, allocations: 319.3 kB / 454.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3911, allocations: 0 / 454.8 MB, free: 1.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.4346, allocations: 16.28 MB / 471.1 MB, free: 1.555 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.18, allocations: 0 / 471.1 MB, free: 1.555 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches