Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002178/0.002178, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 43.92 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2575, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01057/0.2681, allocations: 8.037 MB / 430.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005098/0.2732, allocations: 2.629 MB / 433.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.2743, allocations: 23.94 kB / 433.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.2761, allocations: 0.5183 MB / 433.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001553/0.2777, allocations: 436.8 kB / 434.3 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.2785, allocations: 227.6 kB / 434.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00215/0.2806, allocations: 1.232 MB / 435.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008659/0.2815, allocations: 366.5 kB / 436.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009766/0.2825, allocations: 0.4903 MB / 436.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.2837, allocations: 0.5212 MB / 437.1 MB, free: 48 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004017/0.2841, allocations: 112 kB / 437.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007026/0.2848, allocations: 155.9 kB / 437.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003842/0.2852, allocations: 239.1 kB / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00117/0.2863, allocations: 0.5638 MB / 438.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.2889, allocations: 1.467 MB / 439.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.639e-06/0.2889, allocations: 4 kB / 439.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2889, allocations: 0 / 439.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-05/0.289, allocations: 0 / 439.6 MB, free: 13.51 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003451/0.2924, allocations: 1.248 MB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.2925, allocations: 16.02 kB / 440.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001841/0.2927, allocations: 131.5 kB / 441 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/0.2933, allocations: 156.2 kB / 441.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.2945, allocations: 0.5803 MB / 441.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/0.2946, allocations: 66.12 kB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.2947, allocations: 91.89 kB / 441.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.2961, allocations: 0.8223 MB / 442.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.2962, allocations: 7.922 kB / 442.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/0.2962, allocations: 32 kB / 442.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.2962, allocations: 28 kB / 442.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.2973, allocations: 0.5387 MB / 443.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004579/0.3019, allocations: 3.469 MB / 446.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005088/0.3024, allocations: 226.7 kB / 447 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.3026, allocations: 108.8 kB / 447.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.3027, allocations: 4 kB / 447.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.3027, allocations: 34.56 kB / 447.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.903e-06/0.3027, allocations: 0 / 447.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002066/0.3048, allocations: 0.9353 MB / 448.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.3048, allocations: 89.03 kB / 448.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009711/0.3058, allocations: 0.7624 MB / 448.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.3058, allocations: 29.7 kB / 449 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000456/0.3063, allocations: 0.5267 MB / 449.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.3064, allocations: 115.1 kB / 449.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.3065, allocations: 122.2 kB / 449.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.3068, allocations: 382.8 kB / 450.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.3071, allocations: 129.2 kB / 450.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005993/0.3077, allocations: 458.2 kB / 450.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008683/0.3085, allocations: 0.614 MB / 451.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.3085, allocations: 4 kB / 451.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001168/0.3097, allocations: 0.6505 MB / 452 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3097, allocations: 23.41 kB / 452 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.3098, allocations: 8 kB / 452 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/0.3099, allocations: 28.86 kB / 452 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.3104, allocations: 155.7 kB / 452.2 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3116, allocations: 1.275 MB / 453.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005211/0.3121, allocations: 48.06 kB / 453.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.3122, allocations: 35.98 kB / 453.5 MB, free: 14.74 MB / 366.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.0003665/0.3126, allocations: 245.5 kB / 453.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3127, allocations: 79.48 kB / 453.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007203/0.3134, allocations: 333.9 kB / 454.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3134, allocations: 4 kB / 454.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3134, allocations: 7.938 kB / 454.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3134, allocations: 0 / 454.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.3152, allocations: 1.087 MB / 455.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.3152, allocations: 0 / 455.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.3155, allocations: 59.97 kB / 455.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.895e-05/0.3156, allocations: 24.78 kB / 455.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.3157, allocations: 11.94 kB / 455.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.3167, allocations: 1.28 MB / 456.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3167, allocations: 0 / 456.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009791/0.3177, allocations: 0.5768 MB / 457.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.318, allocations: 99.52 kB / 457.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.643e-05/0.3181, allocations: 8 kB / 457.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.3184, allocations: 23.98 kB / 457.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/0.3185, allocations: 23.95 kB / 457.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.3185, allocations: 8 kB / 457.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008146/0.3193, allocations: 0.5224 MB / 457.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3193, allocations: 0 / 457.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007355/0.3201, allocations: 175.9 kB / 458.1 MB, free: 9.941 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.001397/0.3214, allocations: 1.125 MB / 459.2 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.3225, allocations: 486.5 kB / 459.7 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3225, allocations: 3.938 kB / 459.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004088/0.3229, allocations: 234.5 kB / 459.9 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.3239, allocations: 187.1 kB / 460.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3349, allocations: 6.526 MB / 466.6 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008467/0.3357, allocations: 0.9526 MB / 467.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.3361, allocations: 94.17 kB / 467.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004469/0.3365, allocations: 315.3 kB / 468 MB, free: 15.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.011e-06/0.3365, allocations: 0 / 468 MB, free: 15.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06243/0.399, allocations: 16.6 MB / 484.6 MB, free: 15.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.2, allocations: 8.062 kB / 484.6 MB, free: 15.13 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.37054386991076]