Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001816/0.001816, allocations: 116.5 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002322/0.002322, allocations: 206.6 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 63.91 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2637, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01204/0.2758, allocations: 9.702 MB / 440.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006463/0.2822, allocations: 3.158 MB / 444.1 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001741/0.284, allocations: 35.81 kB / 444.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.2862, allocations: 0.6135 MB / 444.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002221/0.2885, allocations: 0.5854 MB / 445.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2897, allocations: 327.4 kB / 445.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.2926, allocations: 1.763 MB / 447.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.2937, allocations: 453.3 kB / 447.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.2951, allocations: 0.6966 MB / 448.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.2966, allocations: 0.7429 MB / 449.3 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004835/0.2971, allocations: 160 kB / 449.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006908/0.2978, allocations: 196 kB / 449.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003198/0.2981, allocations: 334.8 kB / 449.9 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009097/0.299, allocations: 0.8087 MB / 450.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002474/0.3015, allocations: 1.984 MB / 452.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3015, allocations: 0 / 452.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3015, allocations: 0 / 452.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.465e-05/0.3015, allocations: 0 / 452.7 MB, free: 1.035 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003335/0.3049, allocations: 1.767 MB / 454.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3049, allocations: 8.031 kB / 454.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002082/0.3051, allocations: 172.9 kB / 454.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005645/0.3057, allocations: 203.9 kB / 454.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.3071, allocations: 0.768 MB / 455.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.3073, allocations: 163.8 kB / 455.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.3075, allocations: 115.9 kB / 455.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.3093, allocations: 1.139 MB / 457.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.3094, allocations: 3.938 kB / 457.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.282e-05/0.3095, allocations: 51.98 kB / 457.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/0.3095, allocations: 28 kB / 457.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.311, allocations: 0.7535 MB / 457.9 MB, free: 11.67 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005783/0.3168, allocations: 3.821 MB / 461.7 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.3183, allocations: 0.5501 MB / 462.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000493/0.3188, allocations: 239.4 kB / 462.5 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.3188, allocations: 8.5 kB / 462.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006375/0.3195, allocations: 306.1 kB / 462.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.394e-06/0.3195, allocations: 0 / 462.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004615/0.3241, allocations: 1.865 MB / 464.7 MB, free: 4.645 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003015/0.3244, allocations: 475.3 kB / 465.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.3261, allocations: 1.105 MB / 466.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.3261, allocations: 41.7 kB / 466.3 MB, free: 2.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006261/0.3267, allocations: 0.656 MB / 466.9 MB, free: 2.242 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/0.327, allocations: 250 kB / 467.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.3273, allocations: 190.9 kB / 467.4 MB, free: 1.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.3275, allocations: 345.9 kB / 467.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005977/0.3281, allocations: 242.5 kB / 467.9 MB, free: 1.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009902/0.3291, allocations: 0.7134 MB / 468.6 MB, free: 312 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.3306, allocations: 0.945 MB / 469.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.3306, allocations: 4 kB / 469.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00224/0.3328, allocations: 1.146 MB / 470.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-05/0.3329, allocations: 71.39 kB / 470.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.3329, allocations: 12 kB / 470.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.3335, allocations: 165.9 kB / 471 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.3342, allocations: 203.6 kB / 471.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004765/0.339, allocations: 3.69 MB / 474.9 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009478/0.3399, allocations: 68.03 kB / 474.9 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-05/0.34, allocations: 44.12 kB / 475 MB, free: 9.531 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005418/0.3405, allocations: 297.6 kB / 475.3 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.3408, allocations: 127.2 kB / 475.4 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.3423, allocations: 0.706 MB / 476.1 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.3423, allocations: 11.92 kB / 476.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3423, allocations: 0 / 476.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001454/0.3438, allocations: 0.9551 MB / 477.1 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/0.347, allocations: 1.752 MB / 478.8 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.347, allocations: 3.984 kB / 478.8 MB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.3475, allocations: 108 kB / 478.9 MB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004516/0.3479, allocations: 125.6 kB / 479.1 MB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.348, allocations: 15.98 kB / 479.1 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003754/0.3517, allocations: 3.388 MB / 482.5 MB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3518, allocations: 3.938 kB / 482.5 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.3537, allocations: 1.05 MB / 483.5 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004859/0.3542, allocations: 183.2 kB / 483.7 MB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/0.3544, allocations: 20.11 kB / 483.7 MB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000651/0.355, allocations: 43.97 kB / 483.8 MB, free: 280 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.3552, allocations: 68.25 kB / 483.8 MB, free: 212 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-05/0.3552, allocations: 20 kB / 483.8 MB, free: 192 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001249/0.3565, allocations: 0.7484 MB / 484.6 MB, free: 15.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3565, allocations: 0 / 484.6 MB, free: 15.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001237/0.3577, allocations: 308 kB / 484.9 MB, free: 15.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002419/0.3601, allocations: 1.631 MB / 486.5 MB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.3623, allocations: 1.067 MB / 487.6 MB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3623, allocations: 1.875 kB / 487.6 MB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009583/0.3632, allocations: 0.5392 MB / 488.1 MB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/0.3647, allocations: 331.2 kB / 488.5 MB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/0.381, allocations: 9.759 MB / 498.2 MB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008819/0.3819, allocations: 1.078 MB / 499.3 MB, free: 28 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006043/0.3825, allocations: 153.8 kB / 499.4 MB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006222/0.3831, allocations: 471.3 kB / 499.9 MB, free: 15.41 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3831, allocations: 0 / 499.9 MB, free: 15.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08641/0.4696, allocations: 30.03 MB / 0.5175 GB, free: 1.711 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.21/15.68, allocations: 23.78 kB / 0.5175 GB, free: 1.688 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 650] Reference file matches [Calling sys.exit(0), Time elapsed: 40.04055596399121]