Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001643/0.001643, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001486/0.001486, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.465/1.465, 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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 55.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2681, allocations: 53.39 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01438/0.2824, allocations: 10.57 MB / 442.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007065/0.2895, allocations: 3.129 MB / 445.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002168/0.2917, allocations: 39.88 kB / 445.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.2942, allocations: 0.64 MB / 446.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003099/0.2973, allocations: 0.7833 MB / 447.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.2988, allocations: 411.5 kB / 447.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004575/0.3034, allocations: 2.413 MB / 449.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.3047, allocations: 0.65 MB / 450.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.3065, allocations: 0.9456 MB / 451.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001351/0.3078, allocations: 0.9762 MB / 452.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003066/0.3081, allocations: 228 kB / 452.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005148/0.3086, allocations: 268 kB / 452.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003833/0.309, allocations: 462.3 kB / 453.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009728/0.31, allocations: 0.8712 MB / 454.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003192/0.3132, allocations: 2.868 MB / 457.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3132, allocations: 0 / 457.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3132, allocations: 0 / 457.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.998e-05/0.3132, allocations: 4 kB / 457.1 MB, free: 13.1 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003852/0.3171, allocations: 2.133 MB / 459.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.3171, allocations: 8.031 kB / 459.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.787e-05/0.3172, allocations: 43.28 kB / 459.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002597/0.3174, allocations: 216.1 kB / 459.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000916/0.3184, allocations: 291.5 kB / 459.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/0.3203, allocations: 1.059 MB / 460.9 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.364e-05/0.3204, allocations: 115 kB / 461 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.3206, allocations: 163.9 kB / 461.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.3233, allocations: 1.604 MB / 462.8 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.358e-05/0.3233, allocations: 4 kB / 462.8 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.3235, allocations: 71.94 kB / 462.8 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.3235, allocations: 36 kB / 462.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.3256, allocations: 1.045 MB / 463.9 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008399/0.334, allocations: 5.637 MB / 469.5 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.3356, allocations: 0.5778 MB / 470.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009339/0.3365, allocations: 430.1 kB / 470.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.3365, allocations: 8.641 kB / 470.6 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.3366, allocations: 39.22 kB / 470.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.567e-06/0.3366, allocations: 0 / 470.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005203/0.3418, allocations: 2.166 MB / 472.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.3419, allocations: 123.4 kB / 472.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/0.3438, allocations: 1.302 MB / 474.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.3438, allocations: 41.7 kB / 474.2 MB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006682/0.3445, allocations: 0.8671 MB / 475.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.3447, allocations: 269.7 kB / 475.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.345, allocations: 214.8 kB / 475.6 MB, free: 10.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.3452, allocations: 349.9 kB / 475.9 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.3458, allocations: 278.5 kB / 476.2 MB, free: 9.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.3468, allocations: 0.7926 MB / 477 MB, free: 8.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.3485, allocations: 1.088 MB / 478.1 MB, free: 7.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.3485, allocations: 4 kB / 478.1 MB, free: 7.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002509/0.351, allocations: 1.26 MB / 479.3 MB, free: 5.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.351, allocations: 12 kB / 479.3 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.351, allocations: 16 kB / 479.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005438/0.3516, allocations: 147 kB / 479.5 MB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008479/0.3524, allocations: 247.6 kB / 479.7 MB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004072/0.3565, allocations: 4.32 MB / 484.1 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.3575, allocations: 55.97 kB / 484.1 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.3576, allocations: 56.14 kB / 484.2 MB, free: 0.6719 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006471/0.3583, allocations: 357.4 kB / 484.5 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/0.3585, allocations: 147 kB / 484.7 MB, free: 172 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.3604, allocations: 0.8256 MB / 485.5 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.3604, allocations: 8 kB / 485.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3604, allocations: 0 / 485.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3604, allocations: 3.984 kB / 485.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004038/0.3644, allocations: 2.129 MB / 487.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.3644, allocations: 7.938 kB / 487.6 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.365, allocations: 131.7 kB / 487.8 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004784/0.3655, allocations: 138.9 kB / 487.9 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-05/0.3656, allocations: 19.98 kB / 487.9 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004378/0.37, allocations: 4.466 MB / 492.4 MB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.37, allocations: 4 kB / 492.4 MB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.3725, allocations: 1.313 MB / 493.7 MB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005728/0.373, allocations: 207 kB / 493.9 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001658/0.3732, allocations: 20 kB / 493.9 MB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006241/0.3738, allocations: 35.97 kB / 494 MB, free: 6.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.374, allocations: 64.27 kB / 494 MB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.177e-05/0.374, allocations: 31.98 kB / 494 MB, free: 6.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001351/0.3754, allocations: 0.8742 MB / 494.9 MB, free: 5.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3754, allocations: 0 / 494.9 MB, free: 5.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001266/0.3766, allocations: 332 kB / 495.2 MB, free: 5.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002823/0.3795, allocations: 1.881 MB / 497.1 MB, free: 3.055 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.3815, allocations: 1.077 MB / 498.2 MB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3815, allocations: 0 / 498.2 MB, free: 1.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.3825, allocations: 0.6941 MB / 498.9 MB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.3842, allocations: 375.8 kB / 499.3 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02055/0.4048, allocations: 11.71 MB / 0.499 GB, free: 4.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000855/0.4056, allocations: 0.6302 MB / 0.4996 GB, free: 3.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006805/0.4063, allocations: 171.6 kB / 0.4998 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008734/0.4072, allocations: 0.6164 MB / 0.5004 GB, free: 2.984 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4072, allocations: 3.938 kB / 0.5004 GB, free: 2.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08409/0.4913, allocations: 33.51 MB / 0.5331 GB, free: 1.906 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/16.21, allocations: 7.922 kB / 0.5331 GB, free: 1.898 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 22.653122472926043]