Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001405/0.001405, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001547/0.001547, allocations: 210.7 kB / 24.53 MB, free: 4.07 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.575/1.575, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 63.91 kB / 378.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2449, allocations: 53.41 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01013/0.255, allocations: 8.167 MB / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005115/0.2601, allocations: 2.676 MB / 442.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009008/0.261, allocations: 27.88 kB / 442.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.2627, allocations: 0.5793 MB / 443.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.264, allocations: 0.4925 MB / 443.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000515/0.2645, allocations: 239.7 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001654/0.2662, allocations: 1.49 MB / 445.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006422/0.2668, allocations: 407.2 kB / 446 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007834/0.2676, allocations: 0.5758 MB / 446.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007407/0.2683, allocations: 0.5989 MB / 447.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.2685, allocations: 136 kB / 447.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003329/0.2688, allocations: 179.9 kB / 447.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.2691, allocations: 282.9 kB / 447.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006149/0.2697, allocations: 0.6609 MB / 448.5 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.2716, allocations: 1.736 MB / 450.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2716, allocations: 0 / 450.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2716, allocations: 0 / 450.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.2716, allocations: 0 / 450.2 MB, free: 4.359 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002458/0.2741, allocations: 1.407 MB / 451.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.2741, allocations: 12.03 kB / 451.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.881e-05/0.2742, allocations: 30.19 kB / 451.7 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001713/0.2743, allocations: 152.3 kB / 451.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006398/0.275, allocations: 192 kB / 452 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.2762, allocations: 0.6725 MB / 452.7 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/0.2762, allocations: 70 kB / 452.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.2764, allocations: 99.95 kB / 452.8 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.2779, allocations: 0.9385 MB / 453.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/0.278, allocations: 4 kB / 453.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.2781, allocations: 43.94 kB / 453.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.2781, allocations: 24 kB / 453.8 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.2793, allocations: 0.6364 MB / 454.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005112/0.2844, allocations: 3.782 MB / 458.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.2851, allocations: 341.9 kB / 458.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005839/0.2857, allocations: 254 kB / 458.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.2857, allocations: 4.328 kB / 458.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.2858, allocations: 42.83 kB / 458.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.275e-06/0.2858, allocations: 0 / 458.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002609/0.2884, allocations: 1.26 MB / 460.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.2884, allocations: 85.11 kB / 460.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.2895, allocations: 0.8215 MB / 461 MB, free: 9.121 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.2896, allocations: 37.7 kB / 461.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004418/0.29, allocations: 0.5696 MB / 461.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.2901, allocations: 166.6 kB / 461.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.2903, allocations: 134.6 kB / 461.9 MB, free: 8.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2905, allocations: 334 kB / 462.3 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.2908, allocations: 161.9 kB / 462.4 MB, free: 7.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005657/0.2914, allocations: 471.9 kB / 462.9 MB, free: 7.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009514/0.2923, allocations: 0.6622 MB / 463.6 MB, free: 6.316 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2923, allocations: 0 / 463.6 MB, free: 6.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001331/0.2937, allocations: 0.7751 MB / 464.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2937, allocations: 8 kB / 464.3 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.2937, allocations: 15.92 kB / 464.4 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002676/0.294, allocations: 81.62 kB / 464.4 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.2945, allocations: 155.7 kB / 464.6 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/0.297, allocations: 2.932 MB / 467.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/0.2975, allocations: 35.94 kB / 467.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.2976, allocations: 32 kB / 467.6 MB, free: 2.043 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003929/0.298, allocations: 269.6 kB / 467.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.2981, allocations: 87.44 kB / 467.9 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009491/0.2991, allocations: 495.1 kB / 468.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2991, allocations: 8 kB / 468.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2991, allocations: 4 kB / 468.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2991, allocations: 3.984 kB / 468.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.3013, allocations: 1.399 MB / 469.8 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3013, allocations: 7.984 kB / 469.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.3016, allocations: 63.91 kB / 469.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002056/0.3018, allocations: 77.89 kB / 470 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.3018, allocations: 8 kB / 470 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.3042, allocations: 2.923 MB / 472.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3042, allocations: 0 / 472.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.3055, allocations: 0.7787 MB / 473.7 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.3058, allocations: 127.3 kB / 473.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.846e-05/0.3059, allocations: 12 kB / 473.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.3063, allocations: 27.98 kB / 473.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.001e-05/0.3064, allocations: 31.94 kB / 473.9 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.3064, allocations: 12 kB / 473.9 MB, free: 11.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007819/0.3072, allocations: 0.5693 MB / 474.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3072, allocations: 0 / 474.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008352/0.308, allocations: 204 kB / 474.7 MB, free: 10.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.001619/0.3096, allocations: 1.338 MB / 476 MB, free: 9.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.3108, allocations: 0.6707 MB / 476.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3109, allocations: 0 / 476.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.3115, allocations: 433.6 kB / 477.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3125, allocations: 221.9 kB / 477.3 MB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.3232, allocations: 7.331 MB / 484.6 MB, free: 72 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006936/0.3239, allocations: 1.005 MB / 485.6 MB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004066/0.3243, allocations: 115.2 kB / 485.8 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.3248, allocations: 371.3 kB / 486.1 MB, free: 14.56 MB / 398.1 MB Notification: Performance of SimCode: time 1.724e-06/0.3248, allocations: 0 / 486.1 MB, free: 14.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05537/0.3801, allocations: 19.75 MB / 0.494 GB, free: 11.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.39, allocations: 2.094 kB / 0.494 GB, free: 11.05 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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: 18.653313972987235]