Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.00196/0.00196, 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.002544/0.002544, allocations: 210.2 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.441/1.441, allocations: 230.5 MB / 258.2 MB, free: 8.035 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_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 59.91 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2584, allocations: 53.41 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0138/0.2722, allocations: 11.84 MB / 443.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006485/0.2787, allocations: 3.265 MB / 447.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.2803, allocations: 43.81 kB / 447.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.2821, allocations: 0.6711 MB / 447.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002381/0.2845, allocations: 0.729 MB / 448.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.2855, allocations: 403.5 kB / 448.9 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003426/0.289, allocations: 2.241 MB / 451.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.2901, allocations: 0.6498 MB / 451.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.2915, allocations: 0.8872 MB / 452.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.2928, allocations: 0.91 MB / 453.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002667/0.2931, allocations: 223.9 kB / 453.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004669/0.2935, allocations: 248 kB / 454.1 MB, free: 456 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003307/0.2939, allocations: 426.5 kB / 454.5 MB, free: 28 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009873/0.2949, allocations: 1.023 MB / 455.5 MB, free: 15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002984/0.2978, allocations: 2.69 MB / 458.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2978, allocations: 0 / 458.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2978, allocations: 0 / 458.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.2979, allocations: 0 / 458.2 MB, free: 12.3 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.003728/0.3016, allocations: 2.037 MB / 460.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3017, allocations: 8.031 kB / 460.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.732e-05/0.3017, allocations: 43.27 kB / 460.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002482/0.3019, allocations: 228 kB / 460.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007665/0.3027, allocations: 259.6 kB / 460.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.3045, allocations: 0.9725 MB / 461.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.716e-05/0.3046, allocations: 126.9 kB / 461.9 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.3048, allocations: 156 kB / 462 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.3072, allocations: 1.487 MB / 463.5 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.359e-05/0.3073, allocations: 19.86 kB / 463.5 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.3074, allocations: 64 kB / 463.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.3074, allocations: 40 kB / 463.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.3092, allocations: 0.9707 MB / 464.6 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00864/0.3179, allocations: 6.392 MB / 471 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008306/0.3187, allocations: 368.9 kB / 471.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.3191, allocations: 209.1 kB / 471.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.3192, allocations: 12.36 kB / 471.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005262/0.3197, allocations: 268.8 kB / 471.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 1.833e-06/0.3197, allocations: 0 / 471.8 MB, free: 14.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.00318/0.3229, allocations: 1.56 MB / 473.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.323, allocations: 166.7 kB / 473.6 MB, free: 12.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.3247, allocations: 1.285 MB / 474.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.3247, allocations: 33.7 kB / 474.9 MB, free: 10.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007549/0.3255, allocations: 0.8934 MB / 475.8 MB, free: 10.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.3257, allocations: 214.3 kB / 476 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002949/0.326, allocations: 222.7 kB / 476.2 MB, free: 9.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3261, allocations: 353.9 kB / 476.5 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004568/0.3266, allocations: 230.5 kB / 476.8 MB, free: 9.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009435/0.3275, allocations: 0.8073 MB / 477.6 MB, free: 8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.329, allocations: 1.113 MB / 478.7 MB, free: 6.617 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.329, allocations: 4 kB / 478.7 MB, free: 6.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001984/0.331, allocations: 1.176 MB / 479.9 MB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.331, allocations: 42.39 kB / 479.9 MB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.331, allocations: 20 kB / 479.9 MB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.3313, allocations: 69.7 kB / 480 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007649/0.332, allocations: 259.6 kB / 480.2 MB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.3341, allocations: 2.582 MB / 482.8 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009295/0.335, allocations: 68.05 kB / 482.9 MB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.3351, allocations: 64 kB / 483 MB, free: 2.086 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.0005872/0.3357, allocations: 357.3 kB / 483.3 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.3358, allocations: 143 kB / 483.4 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.3369, allocations: 0.5474 MB / 484 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3369, allocations: 4 kB / 484 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3369, allocations: 4 kB / 484 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3369, allocations: 3.984 kB / 484 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.3397, allocations: 1.83 MB / 485.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.3397, allocations: 4 kB / 485.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004359/0.3401, allocations: 107.8 kB / 485.9 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001523/0.3403, allocations: 42.17 kB / 486 MB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.3403, allocations: 23.94 kB / 486 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001954/0.3423, allocations: 2.539 MB / 488.5 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3423, allocations: 4 kB / 488.5 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.3438, allocations: 0.9305 MB / 489.5 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00045/0.3442, allocations: 187 kB / 489.7 MB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3444, allocations: 16 kB / 489.7 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.3449, allocations: 35.97 kB / 489.7 MB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.345, allocations: 55.8 kB / 489.8 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.345, allocations: 16 kB / 489.8 MB, free: 10.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.3462, allocations: 0.8461 MB / 490.6 MB, free: 9.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3462, allocations: 0 / 490.6 MB, free: 9.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001171/0.3474, allocations: 315.9 kB / 490.9 MB, free: 9.645 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.00189/0.3493, allocations: 1.503 MB / 492.4 MB, free: 8.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.351, allocations: 0.8977 MB / 493.3 MB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.351, allocations: 0 / 493.3 MB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006949/0.3517, allocations: 457.8 kB / 493.8 MB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.3532, allocations: 346.6 kB / 494.1 MB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.3695, allocations: 10.94 MB / 0.4932 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000855/0.3704, allocations: 1.174 MB / 0.4944 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006104/0.371, allocations: 171.3 kB / 0.4945 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007116/0.3717, allocations: 0.5657 MB / 0.4951 GB, free: 8.629 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3717, allocations: 0 / 0.4951 GB, free: 8.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07007/0.4418, allocations: 28.82 MB / 0.5232 GB, free: 12.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.36, allocations: 7.938 kB / 0.5232 GB, free: 12.07 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 21.084352891950402]