Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.00126/0.00126, allocations: 111.8 kB / 18.49 MB, free: 4.562 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.001259/0.001259, allocations: 194.6 kB / 21.43 MB, free: 1.633 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.421/1.421, allocations: 225.6 MB / 249.8 MB, free: 3.609 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_withLosses,fileNamePrefix="Modelica_4_0_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_0_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.001545/0.001545, allocations: 51.92 kB / 366.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1208, allocations: 52.14 MB / 418.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01548/0.1362, allocations: 12.2 MB / 430.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00811/0.1443, allocations: 3.284 MB / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002734/0.1471, allocations: 39.88 kB / 434 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.1496, allocations: 0.6946 MB / 434.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002965/0.1525, allocations: 0.7794 MB / 435.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000903/0.1534, allocations: 403.5 kB / 435.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003265/0.1567, allocations: 2.423 MB / 438.3 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.1577, allocations: 0.6457 MB / 439 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.1592, allocations: 0.934 MB / 439.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.1604, allocations: 0.9761 MB / 440.9 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002903/0.1606, allocations: 232 kB / 441.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004772/0.1611, allocations: 272 kB / 441.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003821/0.1615, allocations: 458.3 kB / 441.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.1626, allocations: 1.073 MB / 442.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003226/0.1658, allocations: 2.844 MB / 445.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1658, allocations: 0 / 445.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1658, allocations: 0 / 445.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.699e-05/0.1658, allocations: 4 kB / 445.7 MB, free: 1.281 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.1945/0.3603, allocations: 2.195 MB / 447.9 MB, free: 29.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3604, allocations: 12.59 kB / 447.9 MB, free: 29.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.328e-05/0.3604, allocations: 44.78 kB / 448 MB, free: 29.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002008/0.3606, allocations: 219.6 kB / 448.2 MB, free: 29.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000854/0.3615, allocations: 292.8 kB / 448.5 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.3632, allocations: 1.135 MB / 449.6 MB, free: 28.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.266e-05/0.3632, allocations: 116.2 kB / 449.7 MB, free: 28.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.3634, allocations: 159.5 kB / 449.9 MB, free: 28.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.3655, allocations: 1.507 MB / 451.4 MB, free: 28.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.253e-05/0.3656, allocations: 10.11 kB / 451.4 MB, free: 28.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.3657, allocations: 66.06 kB / 451.5 MB, free: 28.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.3657, allocations: 38.45 kB / 451.5 MB, free: 28.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.3676, allocations: 1.048 MB / 452.5 MB, free: 28.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007327/0.3749, allocations: 6.253 MB / 458.8 MB, free: 24.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.3764, allocations: 0.5765 MB / 459.4 MB, free: 24.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000857/0.3772, allocations: 416 kB / 459.8 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.392e-05/0.3773, allocations: 8.125 kB / 459.8 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3773, allocations: 47.61 kB / 459.8 MB, free: 23.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.315e-06/0.3773, allocations: 0 / 459.8 MB, free: 23.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004525/0.3818, allocations: 2.392 MB / 462.2 MB, free: 22.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.3819, allocations: 111.9 kB / 462.3 MB, free: 22.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.3837, allocations: 1.303 MB / 463.6 MB, free: 21.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.3837, allocations: 41.08 kB / 463.7 MB, free: 21.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000469/0.3842, allocations: 0.8683 MB / 464.6 MB, free: 21.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.3844, allocations: 282.1 kB / 464.8 MB, free: 21.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.3846, allocations: 204.9 kB / 465 MB, free: 20.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.217e-05/0.3847, allocations: 350.6 kB / 465.4 MB, free: 20.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005492/0.3853, allocations: 284.9 kB / 465.6 MB, free: 20.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007154/0.386, allocations: 0.7404 MB / 466.4 MB, free: 19.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.3872, allocations: 1.086 MB / 467.5 MB, free: 18.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.3873, allocations: 5 kB / 467.5 MB, free: 18.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00245/0.3897, allocations: 1.262 MB / 468.7 MB, free: 18.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.3897, allocations: 12.88 kB / 468.8 MB, free: 18.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.3898, allocations: 19.78 kB / 468.8 MB, free: 18.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005445/0.3903, allocations: 134.6 kB / 468.9 MB, free: 18.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008582/0.3912, allocations: 259.3 kB / 469.2 MB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/0.3942, allocations: 4.637 MB / 473.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009729/0.3952, allocations: 64.44 kB / 473.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-05/0.3952, allocations: 54.59 kB / 473.9 MB, free: 13.69 MB / 366.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.0005444/0.3958, allocations: 359.3 kB / 474.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.396, allocations: 147.4 kB / 474.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.3976, allocations: 0.8284 MB / 475.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3976, allocations: 7.594 kB / 475.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3977, allocations: 0 / 475.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3977, allocations: 8.672 kB / 475.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.4012, allocations: 2.33 MB / 477.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4012, allocations: 6.75 kB / 477.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/0.4018, allocations: 129 kB / 477.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004055/0.4022, allocations: 136 kB / 477.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.4022, allocations: 20.92 kB / 477.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/0.4052, allocations: 4.789 MB / 482.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.4052, allocations: 8.125 kB / 482.7 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.4073, allocations: 1.295 MB / 484 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004068/0.4077, allocations: 290.7 kB / 484.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.4079, allocations: 25.11 kB / 484.3 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005849/0.4084, allocations: 40.59 kB / 484.3 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4086, allocations: 58.16 kB / 484.4 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.4086, allocations: 29.17 kB / 484.4 MB, free: 5.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.4098, allocations: 0.8754 MB / 485.3 MB, free: 5.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4098, allocations: 0 / 485.3 MB, free: 5.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001364/0.4111, allocations: 330.6 kB / 485.6 MB, free: 5.055 MB / 366.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.002326/0.4134, allocations: 1.893 MB / 487.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.4152, allocations: 1.086 MB / 488.6 MB, free: 2.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.4152, allocations: 1.375 kB / 488.6 MB, free: 2.949 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.416, allocations: 0.6899 MB / 489.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.4174, allocations: 377.8 kB / 489.6 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.4348, allocations: 11.72 MB / 0.4896 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009902/0.4358, allocations: 1.217 MB / 0.4908 GB, free: 6.363 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006807/0.4365, allocations: 167.6 kB / 0.4909 GB, free: 6.195 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008298/0.4373, allocations: 0.6086 MB / 0.4915 GB, free: 5.586 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4373, allocations: 0 / 0.4915 GB, free: 5.586 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07612/0.5135, allocations: 31.46 MB / 0.5223 GB, free: 6.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.12, allocations: 4.062 kB / 0.5223 GB, free: 6.496 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 21.3929611670319]