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.001426/0.001426, allocations: 110 kB / 20.43 MB, free: 1.453 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.001712/0.001712, allocations: 212.5 kB / 23.74 MB, free: 4.66 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.406/1.406, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.001857/0.001857, allocations: 67.89 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2822, allocations: 53.41 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009026/0.2913, allocations: 7.214 MB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004223/0.2955, allocations: 2.406 MB / 440.8 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007058/0.2962, allocations: 19.94 kB / 440.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.2976, allocations: 0.5088 MB / 441.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.2988, allocations: 417 kB / 441.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.2993, allocations: 207.7 kB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001408/0.3007, allocations: 1.199 MB / 443.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.3013, allocations: 340.5 kB / 443.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000731/0.302, allocations: 486.1 kB / 444 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006067/0.3026, allocations: 0.49 MB / 444.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.3028, allocations: 112 kB / 444.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003069/0.3031, allocations: 156 kB / 444.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001743/0.3032, allocations: 227.2 kB / 444.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.3038, allocations: 0.5443 MB / 445.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001655/0.3054, allocations: 1.44 MB / 446.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3054, allocations: 0 / 446.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3054, allocations: 0 / 446.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.3054, allocations: 0 / 446.9 MB, free: 6.852 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.002183/0.3076, allocations: 1.202 MB / 448.1 MB, free: 5.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3077, allocations: 12.03 kB / 448.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.3078, allocations: 131.1 kB / 448.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004819/0.3083, allocations: 148.2 kB / 448.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.3094, allocations: 0.5804 MB / 449 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.848e-05/0.3095, allocations: 66.38 kB / 449 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.3096, allocations: 84.08 kB / 449.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3109, allocations: 0.7754 MB / 449.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.3109, allocations: 7.984 kB / 449.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.311, allocations: 32 kB / 449.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.311, allocations: 20 kB / 450 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000999/0.312, allocations: 0.5192 MB / 450.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004184/0.3162, allocations: 3.266 MB / 453.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005177/0.3167, allocations: 225.8 kB / 454 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.3169, allocations: 104.8 kB / 454.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.317, allocations: 4 kB / 454.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.317, allocations: 38.56 kB / 454.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.944e-06/0.317, allocations: 0 / 454.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002061/0.3191, allocations: 0.9102 MB / 455 MB, free: 14.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.3191, allocations: 81.34 kB / 455.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009674/0.3201, allocations: 0.735 MB / 455.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.3201, allocations: 33.7 kB / 455.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004075/0.3205, allocations: 0.5034 MB / 456.4 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.836e-05/0.3206, allocations: 107.1 kB / 456.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3208, allocations: 114.2 kB / 456.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.321, allocations: 378.8 kB / 457 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.3212, allocations: 129.2 kB / 457.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.3217, allocations: 422.1 kB / 457.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007953/0.3225, allocations: 0.5714 MB / 458.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3225, allocations: 8 kB / 458.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001052/0.3236, allocations: 0.6272 MB / 458.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3236, allocations: 8 kB / 458.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3236, allocations: 8 kB / 458.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.3238, allocations: 36.84 kB / 458.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.3242, allocations: 135.8 kB / 458.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.3253, allocations: 1.291 MB / 460.2 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.3257, allocations: 36.09 kB / 460.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.3258, allocations: 32 kB / 460.2 MB, free: 8.711 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.0003186/0.3261, allocations: 241.5 kB / 460.5 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.862e-05/0.3262, allocations: 71.53 kB / 460.6 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006554/0.3268, allocations: 317.5 kB / 460.9 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3268, allocations: 4 kB / 460.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3269, allocations: 0 / 460.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3269, allocations: 3.984 kB / 460.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.3285, allocations: 1.069 MB / 461.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3285, allocations: 0 / 461.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002607/0.3287, allocations: 59.91 kB / 462 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.832e-05/0.3288, allocations: 20.84 kB / 462 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.3288, allocations: 8 kB / 462 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009672/0.3298, allocations: 1.275 MB / 463.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3298, allocations: 4.031 kB / 463.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008694/0.3307, allocations: 0.5453 MB / 463.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.3309, allocations: 107.5 kB / 464 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.494e-05/0.331, allocations: 12 kB / 464 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.3313, allocations: 23.98 kB / 464 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.3313, allocations: 35.77 kB / 464 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.3313, allocations: 12 kB / 464 MB, free: 4.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000681/0.332, allocations: 0.4991 MB / 464.5 MB, free: 4.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.332, allocations: 0 / 464.5 MB, free: 4.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006237/0.3326, allocations: 163.9 kB / 464.7 MB, free: 4.004 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.001291/0.3339, allocations: 1.117 MB / 465.8 MB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009044/0.3348, allocations: 456.5 kB / 466.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3348, allocations: 0 / 466.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.3352, allocations: 230.5 kB / 466.5 MB, free: 2.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008655/0.3361, allocations: 184.9 kB / 466.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00862/0.3447, allocations: 6.293 MB / 473 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.3453, allocations: 0.9411 MB / 473.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.3456, allocations: 90.02 kB / 474 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/0.346, allocations: 299.3 kB / 474.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.346, allocations: 0 / 474.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05448/0.4005, allocations: 15.97 MB / 490.2 MB, free: 10.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.23, allocations: 15.66 kB / 490.3 MB, free: 10.14 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.735548262950033]