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.00183/0.00183, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002512/0.002512, allocations: 206.9 kB / 24.51 MB, free: 3.945 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.583/1.583, allocations: 230.5 MB / 258.2 MB, free: 7.793 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 63.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2818, allocations: 53.41 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009102/0.2909, allocations: 6.344 MB / 438.3 MB, free: 112 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004687/0.2956, allocations: 2.216 MB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005793/0.2962, allocations: 19.94 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.2975, allocations: 477.1 kB / 441 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009917/0.2985, allocations: 417 kB / 441.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.299, allocations: 203.7 kB / 441.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.3004, allocations: 1.195 MB / 442.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005936/0.301, allocations: 348.5 kB / 443.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007416/0.3017, allocations: 494 kB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006239/0.3023, allocations: 497.8 kB / 444.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.3025, allocations: 112 kB / 444.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003119/0.3028, allocations: 156 kB / 444.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001943/0.303, allocations: 227.2 kB / 444.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000458/0.3034, allocations: 450 kB / 445 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.3051, allocations: 1.447 MB / 446.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.3051, allocations: 3.984 kB / 446.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3051, allocations: 0 / 446.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.3051, allocations: 0 / 446.4 MB, free: 7.867 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.002106/0.3072, allocations: 1.202 MB / 447.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3073, allocations: 8.031 kB / 447.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.411e-05/0.3073, allocations: 26.19 kB / 447.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.3074, allocations: 127.1 kB / 447.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005036/0.3079, allocations: 148.1 kB / 448 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.309, allocations: 0.5804 MB / 448.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/0.3091, allocations: 62.38 kB / 448.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.3092, allocations: 83.89 kB / 448.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3106, allocations: 0.8295 MB / 449.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.3106, allocations: 0 / 449.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.615e-05/0.3107, allocations: 32 kB / 449.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.3107, allocations: 20 kB / 449.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.3118, allocations: 0.527 MB / 450.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004127/0.3159, allocations: 3.044 MB / 453.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005068/0.3164, allocations: 210.6 kB / 453.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.3166, allocations: 100.8 kB / 453.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.3167, allocations: 4 kB / 453.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3167, allocations: 42.55 kB / 453.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.224e-06/0.3167, allocations: 7.938 kB / 453.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002118/0.3188, allocations: 0.8987 MB / 454.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.3189, allocations: 85.34 kB / 454.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009738/0.3199, allocations: 0.7311 MB / 455.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3199, allocations: 29.7 kB / 455.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003894/0.3203, allocations: 0.5072 MB / 455.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.651e-05/0.3204, allocations: 111.1 kB / 455.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.3205, allocations: 110.2 kB / 456 MB, free: 13.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.3207, allocations: 382.7 kB / 456.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.321, allocations: 129.2 kB / 456.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.3215, allocations: 451.8 kB / 456.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/0.3223, allocations: 0.5753 MB / 457.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3224, allocations: 0 / 457.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001114/0.3235, allocations: 0.6226 MB / 458.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3235, allocations: 8.781 kB / 458.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.3235, allocations: 12 kB / 458.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001761/0.3237, allocations: 32.86 kB / 458.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.3241, allocations: 143.7 kB / 458.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.3253, allocations: 1.275 MB / 459.6 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.3258, allocations: 48.09 kB / 459.6 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.3259, allocations: 28 kB / 459.6 MB, free: 9.855 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.0003846/0.3262, allocations: 237.5 kB / 459.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.3264, allocations: 71.53 kB / 459.9 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/0.327, allocations: 325.4 kB / 460.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.3271, allocations: 4 kB / 460.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3271, allocations: 3.984 kB / 460.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.3271, allocations: 4 kB / 460.3 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.3288, allocations: 0.9956 MB / 461.3 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3288, allocations: 0 / 461.3 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.3291, allocations: 56.12 kB / 461.3 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.828e-05/0.3292, allocations: 28.84 kB / 461.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.3292, allocations: 8 kB / 461.3 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001114/0.3303, allocations: 1.271 MB / 462.6 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3303, allocations: 3.938 kB / 462.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009318/0.3312, allocations: 0.5493 MB / 463.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.3315, allocations: 99.53 kB / 463.3 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.618e-05/0.3315, allocations: 11.98 kB / 463.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3319, allocations: 15.98 kB / 463.3 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.3319, allocations: 27.91 kB / 463.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.332, allocations: 8 kB / 463.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007152/0.3327, allocations: 0.5108 MB / 463.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3327, allocations: 0 / 463.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006543/0.3333, allocations: 159.9 kB / 464 MB, free: 5.23 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.001329/0.3347, allocations: 1.129 MB / 465.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.3356, allocations: 447 kB / 465.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3356, allocations: 0 / 465.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.3359, allocations: 232.6 kB / 465.8 MB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000918/0.3368, allocations: 197 kB / 466 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009149/0.346, allocations: 6.285 MB / 472.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.3464, allocations: 348.7 kB / 472.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003579/0.3468, allocations: 86.03 kB / 472.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003967/0.3472, allocations: 303.3 kB / 473 MB, free: 11.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.783e-06/0.3472, allocations: 0 / 473 MB, free: 11.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04904/0.3962, allocations: 16.65 MB / 489.6 MB, free: 11.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.69, allocations: 14.55 kB / 489.7 MB, free: 11.36 MB / 398.1 MB " [Timeout remaining time 646] (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: 18.503759902901947]