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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001094/0.001094, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2564, allocations: 50.53 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01043/0.2669, allocations: 9.598 MB / 418.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005619/0.2725, allocations: 3.146 MB / 421.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.2738, allocations: 27.94 kB / 421.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001856/0.2757, allocations: 0.5938 MB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001833/0.2775, allocations: 0.5503 MB / 422.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009378/0.2785, allocations: 323.5 kB / 423 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.2809, allocations: 1.759 MB / 424.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009713/0.2819, allocations: 0.6375 MB / 425.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009711/0.2829, allocations: 0.6733 MB / 426.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00081/0.2837, allocations: 0.7506 MB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00018/0.2839, allocations: 159.9 kB / 427 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.2843, allocations: 204 kB / 427.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002356/0.2845, allocations: 334.8 kB / 427.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000693/0.2852, allocations: 0.8048 MB / 428.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.2871, allocations: 1.982 MB / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2871, allocations: 0 / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2871, allocations: 0 / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.2871, allocations: 0 / 430.3 MB, free: 11.87 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.002964/0.2901, allocations: 1.797 MB / 432.1 MB, free: 10 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2901, allocations: 11.97 kB / 432.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/0.2903, allocations: 172.9 kB / 432.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005327/0.2909, allocations: 199 kB / 432.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.2922, allocations: 0.825 MB / 433.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.2923, allocations: 116.3 kB / 433.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.2925, allocations: 119.8 kB / 433.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.2943, allocations: 1.131 MB / 434.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.2944, allocations: 15.94 kB / 434.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-05/0.2945, allocations: 40 kB / 434.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.2945, allocations: 28 kB / 434.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.296, allocations: 0.7535 MB / 435.5 MB, free: 6.453 MB / 350.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.005421/0.3014, allocations: 3.918 MB / 439.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.303, allocations: 0.5902 MB / 440 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004867/0.3035, allocations: 266.9 kB / 440.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.3035, allocations: 12.55 kB / 440.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006183/0.3042, allocations: 295.1 kB / 440.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.935e-06/0.3042, allocations: 0 / 440.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004722/0.3089, allocations: 2.073 MB / 442.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001953/0.3091, allocations: 479.2 kB / 443.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.3105, allocations: 1.105 MB / 444.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.973e-05/0.3106, allocations: 37.7 kB / 444.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004852/0.3111, allocations: 0.6467 MB / 444.9 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3113, allocations: 232.7 kB / 445.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.3115, allocations: 206.6 kB / 445.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3117, allocations: 341.9 kB / 445.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005232/0.3122, allocations: 250.4 kB / 445.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008627/0.3131, allocations: 0.7092 MB / 446.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3144, allocations: 0.9492 MB / 447.6 MB, free: 9.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3145, allocations: 0 / 447.6 MB, free: 9.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002021/0.3165, allocations: 1.138 MB / 448.7 MB, free: 8.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.944e-05/0.3166, allocations: 74.27 kB / 448.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.3166, allocations: 15.94 kB / 448.8 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005529/0.3171, allocations: 164.7 kB / 448.9 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006502/0.3178, allocations: 207.6 kB / 449.1 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004118/0.3219, allocations: 3.893 MB / 453 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009865/0.3229, allocations: 67.94 kB / 453.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.498e-05/0.323, allocations: 51.98 kB / 453.1 MB, free: 3.625 MB / 366.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.0004351/0.3235, allocations: 289.6 kB / 453.4 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3236, allocations: 122.5 kB / 453.6 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.325, allocations: 0.7115 MB / 454.3 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.325, allocations: 8 kB / 454.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.325, allocations: 0 / 454.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001343/0.3264, allocations: 0.9529 MB / 455.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.3291, allocations: 1.789 MB / 457 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3291, allocations: 4 kB / 457 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.3296, allocations: 107.9 kB / 457.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004154/0.33, allocations: 133.7 kB / 457.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.3301, allocations: 15.98 kB / 457.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003288/0.3334, allocations: 3.583 MB / 460.9 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.3334, allocations: 11.95 kB / 460.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.3353, allocations: 1.046 MB / 461.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/0.3358, allocations: 251.6 kB / 462.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.3359, allocations: 16 kB / 462.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/0.3366, allocations: 35.97 kB / 462.2 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.3367, allocations: 64.42 kB / 462.3 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.553e-05/0.3368, allocations: 23.92 kB / 462.3 MB, free: 9.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.3378, allocations: 0.7406 MB / 463 MB, free: 9.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.3379, allocations: 0 / 463 MB, free: 9.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001072/0.3389, allocations: 316.1 kB / 463.3 MB, free: 8.863 MB / 382.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.002212/0.3412, allocations: 1.628 MB / 465 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.3433, allocations: 1.099 MB / 466.1 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.3433, allocations: 4.812 kB / 466.1 MB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.3442, allocations: 0.5512 MB / 466.6 MB, free: 5.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.3457, allocations: 332.4 kB / 466.9 MB, free: 5.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.3608, allocations: 9.722 MB / 476.7 MB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007489/0.3616, allocations: 1.086 MB / 477.8 MB, free: 9.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006365/0.3622, allocations: 149.8 kB / 477.9 MB, free: 9.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005856/0.3628, allocations: 467.3 kB / 478.4 MB, free: 9.133 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3629, allocations: 0 / 478.4 MB, free: 9.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/0.4713, allocations: 29.7 MB / 0.4962 GB, free: 11.81 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.53, allocations: 15.14 kB / 0.4962 GB, free: 11.8 MB / 430.1 MB (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 --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) 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.0.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) Reference file matches