Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 113.1 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002237/0.002237, allocations: 216.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 51.92 kB / 377.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2858, allocations: 53.36 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009705/0.2955, allocations: 7.212 MB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004655/0.3002, allocations: 2.406 MB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007233/0.3009, allocations: 23.88 kB / 440.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.3023, allocations: 0.5049 MB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000946/0.3033, allocations: 417 kB / 441.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.3037, allocations: 211.7 kB / 441.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.305, allocations: 1.206 MB / 443.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005765/0.3056, allocations: 340.5 kB / 443.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006703/0.3063, allocations: 474.2 kB / 443.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006229/0.3069, allocations: 0.4899 MB / 444.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.307, allocations: 116 kB / 444.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003007/0.3073, allocations: 156 kB / 444.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.3075, allocations: 223.2 kB / 444.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000559/0.3081, allocations: 0.556 MB / 445.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.3098, allocations: 1.436 MB / 446.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3098, allocations: 0 / 446.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3098, allocations: 0 / 446.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.3098, allocations: 0 / 446.9 MB, free: 7.02 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.00216/0.312, allocations: 1.198 MB / 448.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.312, allocations: 8.031 kB / 448.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.3122, allocations: 131.1 kB / 448.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004907/0.3127, allocations: 148.2 kB / 448.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.3137, allocations: 0.5804 MB / 448.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.3138, allocations: 62.38 kB / 449 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.3139, allocations: 84.08 kB / 449.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.3152, allocations: 0.7793 MB / 449.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.304e-05/0.3153, allocations: 4 kB / 449.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.3153, allocations: 39.92 kB / 449.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.3153, allocations: 16 kB / 449.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.3164, allocations: 0.5192 MB / 450.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.3206, allocations: 3.27 MB / 453.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004876/0.3211, allocations: 214.5 kB / 453.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.3214, allocations: 116.7 kB / 454 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.3214, allocations: 4 kB / 454 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.3214, allocations: 34.56 kB / 454.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.684e-06/0.3214, allocations: 0 / 454.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.001984/0.3234, allocations: 0.9088 MB / 455 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.292e-05/0.3235, allocations: 81.34 kB / 455.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009534/0.3244, allocations: 0.735 MB / 455.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.3245, allocations: 29.7 kB / 455.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003868/0.3248, allocations: 0.5034 MB / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.392e-05/0.3249, allocations: 115.1 kB / 456.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3251, allocations: 118.2 kB / 456.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3253, allocations: 374.8 kB / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.3255, allocations: 125.2 kB / 457 MB, free: 12.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/0.326, allocations: 418.2 kB / 457.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00082/0.3269, allocations: 0.583 MB / 458 MB, free: 11.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3269, allocations: 0 / 458 MB, free: 11.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001055/0.3279, allocations: 0.6189 MB / 458.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3279, allocations: 14.75 kB / 458.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.328, allocations: 12.66 kB / 458.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001686/0.3281, allocations: 36.84 kB / 458.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.3285, allocations: 135.8 kB / 458.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.3297, allocations: 1.295 MB / 460.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.3302, allocations: 31.94 kB / 460.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.3302, allocations: 28 kB / 460.2 MB, free: 8.887 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.0003713/0.3306, allocations: 241.6 kB / 460.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.3307, allocations: 79.53 kB / 460.5 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006714/0.3314, allocations: 317.4 kB / 460.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3314, allocations: 4 kB / 460.8 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3314, allocations: 0 / 460.8 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3314, allocations: 3.984 kB / 460.8 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.3332, allocations: 1.062 MB / 461.9 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.3332, allocations: 12.02 kB / 461.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000258/0.3334, allocations: 55.91 kB / 462 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.07e-05/0.3335, allocations: 20.86 kB / 462 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.3335, allocations: 11.98 kB / 462 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.3346, allocations: 1.279 MB / 463.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3346, allocations: 0 / 463.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009217/0.3356, allocations: 0.5552 MB / 463.8 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.3358, allocations: 103.5 kB / 463.9 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.132e-05/0.3359, allocations: 12 kB / 463.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.3362, allocations: 15.98 kB / 463.9 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/0.3362, allocations: 31.89 kB / 464 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.3363, allocations: 12 kB / 464 MB, free: 4.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00072/0.337, allocations: 0.5068 MB / 464.5 MB, free: 4.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.337, allocations: 0 / 464.5 MB, free: 4.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006955/0.3377, allocations: 159.9 kB / 464.7 MB, free: 4.168 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.001374/0.339, allocations: 1.114 MB / 465.8 MB, free: 3.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009174/0.34, allocations: 448.7 kB / 466.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.34, allocations: 0 / 466.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.3403, allocations: 247.1 kB / 466.4 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009869/0.3413, allocations: 188.4 kB / 466.6 MB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008998/0.3503, allocations: 6.287 MB / 472.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.351, allocations: 0.9449 MB / 473.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003307/0.3513, allocations: 90.02 kB / 474 MB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003914/0.3517, allocations: 299.3 kB / 474.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3517, allocations: 0 / 474.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05473/0.4064, allocations: 15.97 MB / 490.2 MB, free: 10.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.07, allocations: 0 / 490.2 MB, free: 10.34 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.64330066391267]