Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 117.8 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 249.8 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 51.92 kB / 366.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09966, allocations: 52.14 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008955/0.1086, allocations: 7.174 MB / 425.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004363/0.113, allocations: 2.352 MB / 428 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000822/0.1138, allocations: 19.94 kB / 428 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.1152, allocations: 0.5166 MB / 428.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009564/0.1162, allocations: 409 kB / 428.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003892/0.1166, allocations: 207.7 kB / 429.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001249/0.1178, allocations: 1.205 MB / 430.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005728/0.1184, allocations: 343.8 kB / 430.7 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006413/0.119, allocations: 478.2 kB / 431.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006059/0.1196, allocations: 0.49 MB / 431.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.1198, allocations: 120 kB / 431.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.1201, allocations: 156 kB / 431.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000184/0.1203, allocations: 219.2 kB / 432.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004892/0.1207, allocations: 0.5443 MB / 432.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.1223, allocations: 1.444 MB / 434.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1223, allocations: 0 / 434.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1223, allocations: 0 / 434.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.1223, allocations: 0 / 434.1 MB, free: 12.92 MB / 366.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.002132/0.1245, allocations: 1.273 MB / 435.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1245, allocations: 12.03 kB / 435.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.416e-05/0.1245, allocations: 22.19 kB / 435.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.1247, allocations: 127.1 kB / 435.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004924/0.1252, allocations: 148.2 kB / 435.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1263, allocations: 0.6538 MB / 436.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.1263, allocations: 58.38 kB / 436.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.1264, allocations: 87.89 kB / 436.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.1277, allocations: 0.7754 MB / 437.3 MB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1278, allocations: 4 kB / 437.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-05/0.1278, allocations: 32 kB / 437.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.1279, allocations: 20 kB / 437.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.1289, allocations: 0.5231 MB / 437.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.1331, allocations: 3.377 MB / 441.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.1336, allocations: 215.2 kB / 441.4 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/0.1338, allocations: 108.8 kB / 441.5 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1338, allocations: 0 / 441.5 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.1339, allocations: 46.5 kB / 441.6 MB, free: 5.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.513e-06/0.1339, allocations: 0 / 441.6 MB, free: 5.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002085/0.1359, allocations: 1.053 MB / 442.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.136, allocations: 85.28 kB / 442.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009641/0.137, allocations: 0.731 MB / 443.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.137, allocations: 37.64 kB / 443.5 MB, free: 3.078 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/0.1375, allocations: 0.5034 MB / 444 MB, free: 2.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.489e-05/0.1375, allocations: 111.1 kB / 444.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.1377, allocations: 118.2 kB / 444.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.1379, allocations: 374.8 kB / 444.6 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.1382, allocations: 129.2 kB / 444.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005108/0.1387, allocations: 422.2 kB / 445.1 MB, free: 1.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008147/0.1395, allocations: 0.5675 MB / 445.7 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.1395, allocations: 4 kB / 445.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.1854/0.3249, allocations: 0.6113 MB / 446.3 MB, free: 29.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.325, allocations: 9.734 kB / 446.3 MB, free: 29.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.325, allocations: 11.25 kB / 446.3 MB, free: 29.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.3252, allocations: 32.52 kB / 446.4 MB, free: 29.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.3256, allocations: 141.1 kB / 446.5 MB, free: 29.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007363/0.3264, allocations: 1.396 MB / 447.9 MB, free: 28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/0.3269, allocations: 30.7 kB / 447.9 MB, free: 28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.327, allocations: 29.91 kB / 447.9 MB, free: 28 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.0002689/0.3272, allocations: 238.4 kB / 448.2 MB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.162e-05/0.3273, allocations: 80.92 kB / 448.3 MB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005765/0.3279, allocations: 318.5 kB / 448.6 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3279, allocations: 2.812 kB / 448.6 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3279, allocations: 1.156 kB / 448.6 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.3279, allocations: 2.109 kB / 448.6 MB, free: 27.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.3292, allocations: 1.089 MB / 449.7 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3292, allocations: 3.688 kB / 449.7 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.3295, allocations: 65.95 kB / 449.7 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.679e-05/0.3296, allocations: 22.75 kB / 449.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.3296, allocations: 8.125 kB / 449.8 MB, free: 27.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006052/0.3302, allocations: 1.369 MB / 451.1 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3302, allocations: 5.812 kB / 451.1 MB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007527/0.3309, allocations: 0.5554 MB / 451.7 MB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001588/0.3311, allocations: 182.4 kB / 451.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.864e-05/0.3312, allocations: 9.312 kB / 451.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.3315, allocations: 20.03 kB / 451.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.3315, allocations: 30.22 kB / 451.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.3316, allocations: 13.5 kB / 451.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005248/0.3321, allocations: 0.4991 MB / 452.4 MB, free: 25.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3321, allocations: 0 / 452.4 MB, free: 25.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005758/0.3327, allocations: 165.4 kB / 452.6 MB, free: 25.72 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.0009742/0.3336, allocations: 1.129 MB / 453.7 MB, free: 24.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007916/0.3344, allocations: 455.2 kB / 454.2 MB, free: 24.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3344, allocations: 1.156 kB / 454.2 MB, free: 24.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.3348, allocations: 242.3 kB / 454.4 MB, free: 24.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008439/0.3356, allocations: 180 kB / 454.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/0.3436, allocations: 6.266 MB / 460.9 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.3441, allocations: 0.9428 MB / 461.8 MB, free: 20.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003849/0.3445, allocations: 88.81 kB / 461.9 MB, free: 20.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.3448, allocations: 299.4 kB / 462.2 MB, free: 20.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3448, allocations: 0 / 462.2 MB, free: 20.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04314/0.3879, allocations: 15.6 MB / 477.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.29, allocations: 14.19 kB / 477.8 MB, free: 15.26 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.807073627016507]