Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.00171/0.00171, 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 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.001794/0.001794, allocations: 212.8 kB / 24.51 MB, free: 3.918 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.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.781 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_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 43.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2705, allocations: 53.37 MB / 431.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01348/0.284, allocations: 10.56 MB / 442.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007032/0.2911, allocations: 3.129 MB / 445.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.2926, allocations: 43.81 kB / 445.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.2946, allocations: 0.644 MB / 446.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00244/0.2971, allocations: 0.7833 MB / 447 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009828/0.2981, allocations: 407.5 kB / 447.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003364/0.3014, allocations: 2.405 MB / 449.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.3025, allocations: 0.6539 MB / 450.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001612/0.3041, allocations: 0.9456 MB / 451.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001517/0.3056, allocations: 0.9762 MB / 452.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003696/0.306, allocations: 228 kB / 452.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005962/0.3066, allocations: 272 kB / 452.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003901/0.307, allocations: 462.3 kB / 453.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.3081, allocations: 0.8788 MB / 454.2 MB, free: 176 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003303/0.3114, allocations: 2.856 MB / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3114, allocations: 0 / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3114, allocations: 0 / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.978e-05/0.3114, allocations: 0 / 457.1 MB, free: 13.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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004094/0.3155, allocations: 2.133 MB / 459.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3155, allocations: 8.031 kB / 459.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.036e-05/0.3156, allocations: 43.28 kB / 459.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000278/0.3159, allocations: 228 kB / 459.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.3169, allocations: 291.5 kB / 459.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.3188, allocations: 1.052 MB / 460.8 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.3189, allocations: 119 kB / 460.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.3192, allocations: 159.9 kB / 461.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.3219, allocations: 1.604 MB / 462.7 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/0.3219, allocations: 7.984 kB / 462.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.3221, allocations: 68 kB / 462.8 MB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.3221, allocations: 36 kB / 462.8 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/0.3242, allocations: 1.049 MB / 463.9 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008771/0.333, allocations: 5.633 MB / 469.5 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.3347, allocations: 0.578 MB / 470.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009118/0.3356, allocations: 430.4 kB / 470.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.815e-05/0.3356, allocations: 8.656 kB / 470.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.3357, allocations: 47.2 kB / 470.6 MB, free: 15.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.006e-06/0.3357, allocations: 0 / 470.6 MB, free: 15.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005391/0.3411, allocations: 2.162 MB / 472.7 MB, free: 13.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.3411, allocations: 115.4 kB / 472.8 MB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.3431, allocations: 1.31 MB / 474.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.888e-05/0.3432, allocations: 33.7 kB / 474.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006998/0.3439, allocations: 0.8749 MB / 475 MB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.3441, allocations: 273.8 kB / 475.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000393/0.3445, allocations: 210.8 kB / 475.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3447, allocations: 345.9 kB / 475.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005907/0.3452, allocations: 282.5 kB / 476.1 MB, free: 9.652 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.3463, allocations: 0.7926 MB / 476.9 MB, free: 8.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.348, allocations: 1.088 MB / 478 MB, free: 7.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.348, allocations: 7.984 kB / 478 MB, free: 7.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002544/0.3505, allocations: 1.253 MB / 479.3 MB, free: 6.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.3506, allocations: 16.48 kB / 479.3 MB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.3506, allocations: 20 kB / 479.3 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005972/0.3512, allocations: 138.4 kB / 479.4 MB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008458/0.352, allocations: 251.6 kB / 479.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.3564, allocations: 4.32 MB / 484 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.3576, allocations: 64.12 kB / 484.1 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.3576, allocations: 52 kB / 484.1 MB, free: 0.8594 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.0007876/0.3584, allocations: 357.3 kB / 484.5 MB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.3587, allocations: 147.1 kB / 484.6 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.3606, allocations: 0.8295 MB / 485.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3606, allocations: 8 kB / 485.5 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3606, allocations: 3.938 kB / 485.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.3606, allocations: 3.984 kB / 485.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004035/0.3646, allocations: 2.121 MB / 487.6 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.3646, allocations: 4 kB / 487.6 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006289/0.3653, allocations: 132.3 kB / 487.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004613/0.3657, allocations: 134.4 kB / 487.8 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.701e-05/0.3658, allocations: 19.98 kB / 487.9 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004656/0.3704, allocations: 4.461 MB / 492.3 MB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3704, allocations: 4.281 kB / 492.3 MB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.373, allocations: 1.309 MB / 493.6 MB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005768/0.3735, allocations: 215 kB / 493.8 MB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.3737, allocations: 16 kB / 493.9 MB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007015/0.3744, allocations: 35.97 kB / 493.9 MB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.3746, allocations: 68.41 kB / 494 MB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.47e-05/0.3746, allocations: 20 kB / 494 MB, free: 6.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001359/0.376, allocations: 0.882 MB / 494.9 MB, free: 5.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.376, allocations: 0 / 494.9 MB, free: 5.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001233/0.3772, allocations: 336 kB / 495.2 MB, free: 5.211 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.002889/0.3801, allocations: 1.877 MB / 497.1 MB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3821, allocations: 1.085 MB / 498.2 MB, free: 2.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3821, allocations: 8 kB / 498.2 MB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.3833, allocations: 0.6831 MB / 498.8 MB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.385, allocations: 376.6 kB / 499.2 MB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/0.4046, allocations: 11.7 MB / 0.4989 GB, free: 4.645 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007521/0.4053, allocations: 0.6341 MB / 0.4996 GB, free: 3.977 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006466/0.406, allocations: 175.6 kB / 0.4997 GB, free: 3.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008682/0.4069, allocations: 0.6164 MB / 0.5003 GB, free: 3.184 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4069, allocations: 3.938 kB / 0.5003 GB, free: 3.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0829/0.4898, allocations: 33.52 MB / 0.5331 GB, free: 2.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/15.73, allocations: 8.062 kB / 0.5331 GB, free: 2.152 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.032700882991776]