Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.00148/0.00148, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.001668/0.001668, allocations: 214.9 kB / 24.51 MB, free: 3.691 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.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 7.793 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_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 39.94 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2695, allocations: 53.37 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0128/0.2823, allocations: 10.23 MB / 442.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006063/0.2884, allocations: 3.077 MB / 445.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.2899, allocations: 43.81 kB / 445.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.2919, allocations: 0.6207 MB / 445.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002317/0.2942, allocations: 0.7251 MB / 446.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.2952, allocations: 395.5 kB / 446.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003216/0.2984, allocations: 2.261 MB / 449.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.2997, allocations: 0.6498 MB / 449.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/0.3012, allocations: 0.8717 MB / 450.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.3028, allocations: 0.9139 MB / 451.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004765/0.3033, allocations: 216 kB / 451.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006625/0.3039, allocations: 256 kB / 452.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000363/0.3043, allocations: 430.5 kB / 452.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.3053, allocations: 0.8205 MB / 453.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00307/0.3084, allocations: 2.708 MB / 456.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3084, allocations: 4 kB / 456.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3084, allocations: 0 / 456.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.302e-05/0.3084, allocations: 0 / 456.1 MB, free: 14.31 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003381/0.3118, allocations: 2.044 MB / 458.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.3119, allocations: 12.03 kB / 458.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.229e-05/0.3119, allocations: 43.27 kB / 458.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002582/0.3122, allocations: 216.1 kB / 458.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000816/0.313, allocations: 259.6 kB / 458.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.3147, allocations: 0.9803 MB / 459.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.18e-05/0.3148, allocations: 119 kB / 459.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002146/0.315, allocations: 163.9 kB / 459.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002512/0.3175, allocations: 1.588 MB / 461.5 MB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.398e-05/0.3175, allocations: 7.984 kB / 461.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.3177, allocations: 64 kB / 461.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.301e-05/0.3177, allocations: 36 kB / 461.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.3195, allocations: 0.9746 MB / 462.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007893/0.3274, allocations: 5.94 MB / 468.5 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.3282, allocations: 376.6 kB / 468.9 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.3287, allocations: 210 kB / 469.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.3287, allocations: 8.422 kB / 469.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005604/0.3293, allocations: 316.2 kB / 469.4 MB, free: 412 kB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.544e-06/0.3293, allocations: 4 kB / 469.4 MB, free: 408 kB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003186/0.3325, allocations: 1.553 MB / 470.9 MB, free: 14.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3326, allocations: 166.7 kB / 471.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.3342, allocations: 1.281 MB / 472.4 MB, free: 13.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/0.3343, allocations: 41.64 kB / 472.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007238/0.335, allocations: 0.8933 MB / 473.3 MB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.3352, allocations: 214.3 kB / 473.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/0.3355, allocations: 226.7 kB / 473.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3356, allocations: 349.7 kB / 474.1 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.3361, allocations: 260.2 kB / 474.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009946/0.3371, allocations: 0.9328 MB / 475.3 MB, free: 10.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.3385, allocations: 1.117 MB / 476.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.3385, allocations: 4 kB / 476.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001958/0.3405, allocations: 1.201 MB / 477.6 MB, free: 7.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.696e-05/0.3405, allocations: 49.62 kB / 477.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.3406, allocations: 20 kB / 477.7 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/0.3408, allocations: 61.7 kB / 477.7 MB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007663/0.3415, allocations: 267.9 kB / 478 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.3436, allocations: 2.57 MB / 480.6 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008043/0.3444, allocations: 72.23 kB / 480.6 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.578e-05/0.3445, allocations: 64 kB / 480.7 MB, free: 4.137 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005166/0.345, allocations: 363.2 kB / 481 MB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.3452, allocations: 143 kB / 481.2 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.3462, allocations: 0.5474 MB / 481.7 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3462, allocations: 8 kB / 481.7 MB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3462, allocations: 0 / 481.7 MB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.3462, allocations: 3.984 kB / 481.7 MB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.3489, allocations: 1.709 MB / 483.4 MB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3489, allocations: 4 kB / 483.5 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.3493, allocations: 107.8 kB / 483.6 MB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.3494, allocations: 46.16 kB / 483.6 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.3495, allocations: 19.94 kB / 483.6 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/0.3515, allocations: 2.531 MB / 486.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3515, allocations: 4.312 kB / 486.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.3529, allocations: 0.9266 MB / 487.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003859/0.3533, allocations: 187.1 kB / 487.3 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.3534, allocations: 19.98 kB / 487.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004889/0.3539, allocations: 27.98 kB / 487.3 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.354, allocations: 59.78 kB / 487.4 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.354, allocations: 23.94 kB / 487.4 MB, free: 12.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.3552, allocations: 0.8461 MB / 488.2 MB, free: 12.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3552, allocations: 0 / 488.2 MB, free: 12.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3563, allocations: 307.9 kB / 488.5 MB, free: 11.83 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.001824/0.3581, allocations: 1.507 MB / 490 MB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.3596, allocations: 0.9264 MB / 491 MB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3596, allocations: 0 / 491 MB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000668/0.3602, allocations: 458 kB / 491.4 MB, free: 8.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.3616, allocations: 335.8 kB / 491.7 MB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/0.3776, allocations: 11.05 MB / 0.491 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006553/0.3782, allocations: 0.5966 MB / 0.4916 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005678/0.3788, allocations: 167.3 kB / 0.4918 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007249/0.3795, allocations: 0.5657 MB / 0.4923 GB, free: 11.22 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3795, allocations: 0 / 0.4923 GB, free: 11.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06959/0.4491, allocations: 29.97 MB / 0.5216 GB, free: 13.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.42, allocations: 19.86 kB / 0.5216 GB, free: 13.73 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 20.99190018605441]