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.00132/0.00132, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001457/0.001457, allocations: 215 kB / 23.73 MB, free: 4.387 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001988/0.001988, allocations: 47.92 kB / 377.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2337, allocations: 53.37 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008657/0.2423, allocations: 6.363 MB / 437.5 MB, free: 220 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004062/0.2464, allocations: 2.216 MB / 439.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005487/0.2469, allocations: 23.94 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.2482, allocations: 469.1 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008789/0.249, allocations: 413 kB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.2495, allocations: 211.7 kB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001341/0.2508, allocations: 1.203 MB / 442 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005711/0.2514, allocations: 336.5 kB / 442.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007356/0.2521, allocations: 490.1 kB / 442.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007137/0.2528, allocations: 493.8 kB / 443.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.253, allocations: 119.9 kB / 443.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.2532, allocations: 152 kB / 443.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002012/0.2534, allocations: 227.2 kB / 443.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004633/0.2539, allocations: 446 kB / 444.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001607/0.2555, allocations: 1.455 MB / 445.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2555, allocations: 4 kB / 445.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2555, allocations: 0 / 445.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.2555, allocations: 0 / 445.6 MB, free: 7.98 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.002078/0.2576, allocations: 1.198 MB / 446.8 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.2577, allocations: 12.03 kB / 446.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.2578, allocations: 127.1 kB / 447 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004958/0.2583, allocations: 148.2 kB / 447.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.2594, allocations: 0.5882 MB / 447.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/0.2595, allocations: 58.38 kB / 447.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.2596, allocations: 92.06 kB / 447.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.261, allocations: 0.8217 MB / 448.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.261, allocations: 8 kB / 448.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/0.2611, allocations: 32 kB / 448.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.2611, allocations: 20 kB / 448.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.2621, allocations: 0.5153 MB / 449.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004076/0.2662, allocations: 3.044 MB / 452.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004773/0.2667, allocations: 210.5 kB / 452.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.2669, allocations: 116.7 kB / 452.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.2669, allocations: 4 kB / 452.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.267, allocations: 38.56 kB / 452.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.904e-06/0.267, allocations: 0 / 452.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002016/0.269, allocations: 0.9119 MB / 453.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.269, allocations: 81.34 kB / 453.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009458/0.27, allocations: 0.7465 MB / 454.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.27, allocations: 33.7 kB / 454.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.2704, allocations: 0.5034 MB / 454.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.369e-05/0.2705, allocations: 107.1 kB / 455 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.2706, allocations: 114.2 kB / 455.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.2708, allocations: 382.8 kB / 455.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002805/0.2711, allocations: 125.2 kB / 455.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005287/0.2717, allocations: 451.8 kB / 456.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.2725, allocations: 0.5714 MB / 456.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.2725, allocations: 4 kB / 456.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001048/0.2735, allocations: 0.6156 MB / 457.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.2736, allocations: 12 kB / 457.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.2736, allocations: 12 kB / 457.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.2737, allocations: 32.84 kB / 457.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.2742, allocations: 139.8 kB / 457.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.2753, allocations: 1.287 MB / 458.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.2757, allocations: 36.09 kB / 458.8 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.2757, allocations: 35.98 kB / 458.8 MB, free: 9.965 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.0003322/0.2761, allocations: 239.7 kB / 459 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2762, allocations: 71.53 kB / 459.1 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006713/0.2769, allocations: 321.5 kB / 459.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2769, allocations: 0 / 459.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2769, allocations: 0 / 459.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2769, allocations: 4 kB / 459.4 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.2784, allocations: 0.992 MB / 460.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2784, allocations: 8.219 kB / 460.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.2787, allocations: 59.91 kB / 460.5 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.725e-05/0.2788, allocations: 24.84 kB / 460.5 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.2788, allocations: 12 kB / 460.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009757/0.2798, allocations: 1.259 MB / 461.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2798, allocations: 8.188 kB / 461.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008942/0.2807, allocations: 0.5569 MB / 462.4 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.2809, allocations: 103.5 kB / 462.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/0.281, allocations: 8 kB / 462.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.2813, allocations: 23.92 kB / 462.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.2814, allocations: 31.89 kB / 462.5 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.2814, allocations: 8 kB / 462.5 MB, free: 5.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000659/0.2821, allocations: 0.4991 MB / 463 MB, free: 5.496 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2821, allocations: 0 / 463 MB, free: 5.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006451/0.2827, allocations: 164 kB / 463.2 MB, free: 5.336 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.001303/0.284, allocations: 1.121 MB / 464.3 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008609/0.2849, allocations: 452.9 kB / 464.7 MB, free: 3.715 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2849, allocations: 3.938 kB / 464.8 MB, free: 3.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.2853, allocations: 239.1 kB / 465 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008717/0.2861, allocations: 193.4 kB / 465.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008524/0.2946, allocations: 6.274 MB / 471.4 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.295, allocations: 348.7 kB / 471.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000306/0.2953, allocations: 94 kB / 471.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.2957, allocations: 299.3 kB / 472.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of SimCode: time 4.7e-07/0.2957, allocations: 0 / 472.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05257/0.3483, allocations: 17.12 MB / 489.3 MB, free: 11.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.58, allocations: 7.984 kB / 489.3 MB, free: 11.04 MB / 398.1 MB " [Timeout remaining time 648] (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: 15.157901962986216]