Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.00131/0.00131, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.001424/0.001424, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.503/1.503, allocations: 230.5 MB / 254.7 MB, free: 15.01 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_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.0994, allocations: 53.37 MB / 427.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.1954/0.2948, allocations: 7.192 MB / 434.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.298, allocations: 2.385 MB / 436.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004921/0.2985, allocations: 21.12 kB / 436.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.2997, allocations: 0.5178 MB / 437.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007407/0.3004, allocations: 409.2 kB / 437.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.3008, allocations: 208.2 kB / 437.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.3019, allocations: 1.201 MB / 439 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004812/0.3024, allocations: 335.5 kB / 439.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.303, allocations: 484.1 kB / 439.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000495/0.3035, allocations: 499.5 kB / 440.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.3037, allocations: 112.7 kB / 440.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/0.304, allocations: 158.5 kB / 440.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3041, allocations: 225.8 kB / 440.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004348/0.3046, allocations: 0.5475 MB / 441.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001737/0.3063, allocations: 1.439 MB / 442.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3063, allocations: 1.312 kB / 442.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3063, allocations: 0 / 442.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.3063, allocations: 0 / 442.7 MB, free: 3.84 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001856/0.3082, allocations: 1.279 MB / 444 MB, free: 2.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3082, allocations: 11.52 kB / 444 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.949e-05/0.3082, allocations: 22.31 kB / 444.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.3084, allocations: 122.1 kB / 444.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004834/0.3089, allocations: 152.6 kB / 444.3 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.3099, allocations: 0.6473 MB / 445 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.346e-05/0.3099, allocations: 62.22 kB / 445 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.3101, allocations: 85.06 kB / 445.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.3114, allocations: 0.7791 MB / 445.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.3114, allocations: 4.062 kB / 445.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.3115, allocations: 30.69 kB / 445.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.3115, allocations: 24.41 kB / 446 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.3125, allocations: 0.5198 MB / 446.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003988/0.3165, allocations: 3.376 MB / 449.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.317, allocations: 213.2 kB / 450.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.3172, allocations: 107.5 kB / 450.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3173, allocations: 10.59 kB / 450.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3173, allocations: 36.73 kB / 450.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.333e-06/0.3173, allocations: 3.938 kB / 450.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002204/0.3195, allocations: 1.055 MB / 451.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.3196, allocations: 80.78 kB / 451.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.3207, allocations: 0.7401 MB / 452.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.3207, allocations: 35.89 kB / 452.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/0.3211, allocations: 0.5033 MB / 452.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.377e-05/0.3212, allocations: 113 kB / 452.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.3214, allocations: 112.9 kB / 452.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3216, allocations: 375.4 kB / 453.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.3219, allocations: 127.1 kB / 453.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.3224, allocations: 422.4 kB / 453.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008192/0.3232, allocations: 0.5677 MB / 454.3 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3232, allocations: 3.484 kB / 454.3 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001097/0.3243, allocations: 0.6217 MB / 454.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3243, allocations: 8.594 kB / 455 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.3243, allocations: 15.11 kB / 455 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.3245, allocations: 34.12 kB / 455 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004267/0.3249, allocations: 138.6 kB / 455.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.3261, allocations: 1.386 MB / 456.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004884/0.3265, allocations: 34.52 kB / 456.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.3266, allocations: 28.88 kB / 456.6 MB, free: 10.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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.0003556/0.3269, allocations: 237.3 kB / 456.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.3271, allocations: 75.05 kB / 456.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007012/0.3278, allocations: 321.9 kB / 457.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.3278, allocations: 4.094 kB / 457.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.3278, allocations: 0 / 457.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3278, allocations: 6.453 kB / 457.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.3296, allocations: 1.095 MB / 458.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3296, allocations: 2.75 kB / 458.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002476/0.3298, allocations: 58.3 kB / 458.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.112e-05/0.3299, allocations: 22.91 kB / 458.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.3299, allocations: 11.03 kB / 458.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009796/0.3309, allocations: 1.375 MB / 459.8 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3309, allocations: 6.688 kB / 459.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008799/0.3318, allocations: 0.5573 MB / 460.3 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/0.332, allocations: 173.2 kB / 460.5 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.3321, allocations: 11.5 kB / 460.5 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3324, allocations: 19.23 kB / 460.5 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.857e-05/0.3325, allocations: 29.78 kB / 460.6 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3325, allocations: 11.66 kB / 460.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006894/0.3332, allocations: 0.5068 MB / 461.1 MB, free: 6.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3332, allocations: 0 / 461.1 MB, free: 6.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.3339, allocations: 162.3 kB / 461.2 MB, free: 6.973 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 (27): * Single equations (assignments): 26 * 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.001286/0.3352, allocations: 1.131 MB / 462.4 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008621/0.336, allocations: 454.2 kB / 462.8 MB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.336, allocations: 1.375 kB / 462.8 MB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003926/0.3364, allocations: 230.7 kB / 463 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.3373, allocations: 191.2 kB / 463.2 MB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008912/0.3462, allocations: 6.269 MB / 469.5 MB, free: 1.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006224/0.3469, allocations: 0.9438 MB / 470.4 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003937/0.3472, allocations: 90.3 kB / 470.5 MB, free: 472 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/0.3476, allocations: 302.4 kB / 470.8 MB, free: 208 kB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3476, allocations: 0 / 470.8 MB, free: 208 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/0.3904, allocations: 15.59 MB / 486.4 MB, free: 3.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.86, allocations: 14.16 kB / 486.4 MB, free: 3.98 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: 16.609552921028808]