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.00151/0.00151, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001519/0.001519, allocations: 188.4 kB / 24.49 MB, free: 3.961 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.355/1.355, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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.001401/0.001401, allocations: 47.92 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2531, allocations: 52.18 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01296/0.266, allocations: 10.54 MB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005914/0.272, allocations: 3.086 MB / 437 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.2736, allocations: 47.81 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.2755, allocations: 0.6361 MB / 437.7 MB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002296/0.2778, allocations: 0.7952 MB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007819/0.2786, allocations: 403.5 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002786/0.2813, allocations: 2.418 MB / 441.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001003/0.2823, allocations: 0.6462 MB / 441.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001333/0.2837, allocations: 0.9456 MB / 442.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.2849, allocations: 0.9762 MB / 443.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002765/0.2852, allocations: 235.9 kB / 444.1 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.2856, allocations: 260 kB / 444.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003932/0.286, allocations: 466.3 kB / 444.8 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009482/0.287, allocations: 0.8711 MB / 445.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003033/0.29, allocations: 2.864 MB / 448.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.29, allocations: 0 / 448.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.29, allocations: 8 kB / 448.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-05/0.2901, allocations: 0 / 448.5 MB, free: 5.082 MB / 350.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.003845/0.2939, allocations: 2.122 MB / 450.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.294, allocations: 12.03 kB / 450.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.041e-05/0.294, allocations: 39.28 kB / 450.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/0.2943, allocations: 220.1 kB / 450.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009164/0.2952, allocations: 295.4 kB / 451.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.2972, allocations: 1.055 MB / 452.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.2973, allocations: 119 kB / 452.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002308/0.2976, allocations: 160 kB / 452.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002689/0.3002, allocations: 1.604 MB / 454.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.711e-05/0.3003, allocations: 7.938 kB / 454.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.3004, allocations: 68 kB / 454.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-05/0.3005, allocations: 40 kB / 454.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.3026, allocations: 1.041 MB / 455.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008377/0.3109, allocations: 5.653 MB / 460.9 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.3125, allocations: 0.5656 MB / 461.5 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009254/0.3134, allocations: 430.6 kB / 461.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.3135, allocations: 8.656 kB / 461.9 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.3135, allocations: 39.22 kB / 462 MB, free: 7.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.976e-06/0.3135, allocations: 0 / 462 MB, free: 7.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005273/0.3188, allocations: 2.169 MB / 464.2 MB, free: 4.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.071e-05/0.3189, allocations: 115.4 kB / 464.3 MB, free: 4.789 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/0.321, allocations: 1.302 MB / 465.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.3211, allocations: 41.7 kB / 465.6 MB, free: 3.426 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007478/0.3218, allocations: 0.871 MB / 466.5 MB, free: 2.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.322, allocations: 269.7 kB / 466.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/0.3224, allocations: 206.8 kB / 466.9 MB, free: 2.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.3226, allocations: 349.9 kB / 467.3 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006817/0.3233, allocations: 286.4 kB / 467.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.3244, allocations: 0.7926 MB / 468.4 MB, free: 436 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.3261, allocations: 1.081 MB / 469.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.3261, allocations: 4 kB / 469.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002625/0.3287, allocations: 1.268 MB / 470.7 MB, free: 13.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.3288, allocations: 12 kB / 470.7 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.3288, allocations: 16 kB / 470.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005362/0.3293, allocations: 146.9 kB / 470.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00085/0.3302, allocations: 247.7 kB / 471.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.3345, allocations: 4.317 MB / 475.4 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.3357, allocations: 59.92 kB / 475.5 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.542e-05/0.3358, allocations: 55.94 kB / 475.6 MB, free: 8.652 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.0006719/0.3364, allocations: 357.5 kB / 475.9 MB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.3367, allocations: 151 kB / 476 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.3385, allocations: 0.8256 MB / 476.9 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.3386, allocations: 8 kB / 476.9 MB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3386, allocations: 0 / 476.9 MB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.3386, allocations: 3.984 kB / 476.9 MB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004102/0.3427, allocations: 2.129 MB / 479 MB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.3427, allocations: 4 kB / 479 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.3433, allocations: 131.7 kB / 479.1 MB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004694/0.3438, allocations: 134.7 kB / 479.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.3438, allocations: 20 kB / 479.3 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004739/0.3485, allocations: 4.469 MB / 483.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3485, allocations: 4 kB / 483.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.3512, allocations: 1.305 MB / 485.1 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005659/0.3518, allocations: 211 kB / 485.3 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.3519, allocations: 24 kB / 485.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006188/0.3526, allocations: 35.97 kB / 485.3 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3527, allocations: 64.27 kB / 485.4 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.3527, allocations: 28 kB / 485.4 MB, free: 14.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001302/0.354, allocations: 0.8742 MB / 486.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.354, allocations: 0 / 486.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001195/0.3552, allocations: 331.9 kB / 486.6 MB, free: 13 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.0028/0.358, allocations: 1.885 MB / 488.5 MB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00198/0.36, allocations: 1.077 MB / 489.6 MB, free: 9.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.36, allocations: 4 kB / 489.6 MB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.361, allocations: 0.6988 MB / 490.3 MB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.3626, allocations: 363.2 kB / 490.7 MB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/0.3842, allocations: 11.71 MB / 0.4906 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009245/0.3851, allocations: 0.6341 MB / 0.4912 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007852/0.3859, allocations: 171.6 kB / 0.4914 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009471/0.3868, allocations: 0.6125 MB / 0.492 GB, free: 10.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3868, allocations: 0 / 0.492 GB, free: 10.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09309/0.4799, allocations: 33.47 MB / 0.5247 GB, free: 9.949 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.49, allocations: 17.59 kB / 0.5247 GB, free: 9.938 MB / 446.1 MB " [Timeout remaining time 644] (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.52062304399442]