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.00187/0.00187, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002292/0.002292, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.461/1.461, allocations: 230.5 MB / 257.4 MB, free: 7.75 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 68.03 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2447, allocations: 53.42 MB / 431.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00886/0.2535, allocations: 6.359 MB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004373/0.2579, allocations: 2.209 MB / 439.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007409/0.2587, allocations: 23.88 kB / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.2602, allocations: 473.1 kB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.2615, allocations: 421 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.262, allocations: 199.8 kB / 440.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.2636, allocations: 1.202 MB / 442 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006177/0.2642, allocations: 316.5 kB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007652/0.265, allocations: 486.1 kB / 442.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005824/0.2656, allocations: 429.8 kB / 443.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.2657, allocations: 116 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.266, allocations: 155.9 kB / 443.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001837/0.2662, allocations: 231.1 kB / 443.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004575/0.2667, allocations: 446 kB / 444.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001734/0.2684, allocations: 1.451 MB / 445.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.2684, allocations: 4 kB / 445.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2684, allocations: 0 / 445.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.366e-05/0.2685, allocations: 0 / 445.6 MB, free: 8.027 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.002338/0.2708, allocations: 1.194 MB / 446.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.2708, allocations: 11.98 kB / 446.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.271, allocations: 131 kB / 446.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005267/0.2715, allocations: 156.2 kB / 447.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.2728, allocations: 0.5765 MB / 447.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-05/0.2728, allocations: 62.31 kB / 447.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.2729, allocations: 88.08 kB / 447.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.2744, allocations: 0.8257 MB / 448.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.2744, allocations: 7.938 kB / 448.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/0.2745, allocations: 32 kB / 448.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.2745, allocations: 20 kB / 448.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.2755, allocations: 0.5114 MB / 449.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.2797, allocations: 3.044 MB / 452.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.2802, allocations: 215.4 kB / 452.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.2804, allocations: 108.8 kB / 452.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.2805, allocations: 0 / 452.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.2805, allocations: 34.56 kB / 452.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.282e-06/0.2805, allocations: 0 / 452.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002033/0.2825, allocations: 0.9174 MB / 453.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.2826, allocations: 81.34 kB / 453.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.2836, allocations: 0.7504 MB / 454.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.2836, allocations: 29.7 kB / 454.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003927/0.284, allocations: 0.5073 MB / 454.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.642e-05/0.2841, allocations: 111.1 kB / 455 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.2843, allocations: 110.2 kB / 455.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.2845, allocations: 378.8 kB / 455.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.2848, allocations: 129.2 kB / 455.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.2853, allocations: 443.9 kB / 456 MB, free: 13.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008266/0.2861, allocations: 0.5792 MB / 456.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.2861, allocations: 4 kB / 456.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001101/0.2872, allocations: 0.6114 MB / 457.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.2872, allocations: 12 kB / 457.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.2873, allocations: 11.94 kB / 457.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.2874, allocations: 36.84 kB / 457.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.2878, allocations: 140.1 kB / 457.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.2891, allocations: 1.291 MB / 458.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004621/0.2895, allocations: 35.94 kB / 458.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.2896, allocations: 28 kB / 458.8 MB, free: 10.02 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.0003348/0.2899, allocations: 237.8 kB / 459 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.29, allocations: 75.53 kB / 459.1 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006642/0.2907, allocations: 317.4 kB / 459.4 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2907, allocations: 4 kB / 459.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.2907, allocations: 0 / 459.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2907, allocations: 3.984 kB / 459.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.2923, allocations: 1.003 MB / 460.4 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2923, allocations: 0 / 460.4 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.2926, allocations: 63.89 kB / 460.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.525e-05/0.2927, allocations: 20.86 kB / 460.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.2927, allocations: 8 kB / 460.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.2937, allocations: 1.271 MB / 461.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2937, allocations: 0 / 461.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009379/0.2947, allocations: 0.5649 MB / 462.3 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.2949, allocations: 99.53 kB / 462.4 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.089e-05/0.295, allocations: 8 kB / 462.4 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.2953, allocations: 15.98 kB / 462.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.638e-05/0.2954, allocations: 35.83 kB / 462.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.2954, allocations: 8 kB / 462.5 MB, free: 6.047 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007583/0.2962, allocations: 0.5029 MB / 463 MB, free: 5.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2962, allocations: 0 / 463 MB, free: 5.547 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007123/0.2969, allocations: 160 kB / 463.2 MB, free: 5.391 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.001429/0.2983, allocations: 1.125 MB / 464.3 MB, free: 4.215 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009296/0.2992, allocations: 448.4 kB / 464.7 MB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.2992, allocations: 4 kB / 464.7 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.2996, allocations: 230.5 kB / 464.9 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009477/0.3006, allocations: 195.9 kB / 465.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009244/0.3098, allocations: 6.278 MB / 471.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3102, allocations: 348.7 kB / 471.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003826/0.3106, allocations: 90 kB / 471.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/0.311, allocations: 303.3 kB / 472.1 MB, free: 11.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.311, allocations: 4 kB / 472.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05717/0.3682, allocations: 16.91 MB / 489.1 MB, free: 11.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.42, allocations: 3.984 kB / 489.1 MB, free: 11.24 MB / 398.1 MB " [Timeout remaining time 647] (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.111834942828864]