Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.001264/0.001264, allocations: 114.5 kB / 18.49 MB, free: 4.59 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.001228/0.001228, allocations: 193 kB / 21.43 MB, free: 1.66 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.359/1.359, allocations: 225.6 MB / 249.8 MB, free: 3.625 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.92 kB / 366.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09269/0.09418, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2104/0.3046, allocations: 28.7 MB / 447.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.3185, allocations: 8.407 MB / 455.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005271/0.3238, allocations: 259.8 kB / 455.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01689/0.3407, allocations: 8.269 MB / 464.1 MB, free: 6.465 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008971/0.3497, allocations: 2.853 MB / 467 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005366/0.355, allocations: 1.866 MB / 468.9 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01232/0.3674, allocations: 9.972 MB / 478.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02862/0.396, allocations: 16.33 MB / 495.2 MB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00957/0.4055, allocations: 5.468 MB / 0.4889 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01005/0.4156, allocations: 6.085 MB / 0.4948 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003895/0.4195, allocations: 1.543 MB / 0.4964 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005866/0.4254, allocations: 1.9 MB / 0.4982 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004447/0.4298, allocations: 2.997 MB / 0.5011 GB, free: 5.539 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01008/0.4399, allocations: 5.844 MB / 0.5068 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02542/0.4653, allocations: 20.67 MB / 0.527 GB, free: 11.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.4653, allocations: 3.984 kB / 0.527 GB, free: 11.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4653, allocations: 0 / 0.527 GB, free: 11.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004609/0.4658, allocations: 8 kB / 0.527 GB, free: 11.37 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03442/0.5002, allocations: 12.04 MB / 0.5388 GB, free: 15.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.5002, allocations: 15.89 kB / 0.5388 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003078/0.5005, allocations: 292 kB / 0.5391 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004948/0.5055, allocations: 1.546 MB / 0.5406 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0307/0.5362, allocations: 5.687 MB / 0.5462 GB, free: 7.816 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.5496, allocations: 6.318 MB / 0.5523 GB, free: 1.484 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007909/0.5504, allocations: 0.7018 MB / 0.553 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003286/0.5537, allocations: 0.9392 MB / 0.5539 GB, free: 15.86 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03702/0.5907, allocations: 15.1 MB / 0.5687 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003944/0.5911, allocations: 15.94 kB / 0.5687 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002987/0.5941, allocations: 389.2 kB / 0.5691 GB, free: 332 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007698/0.5949, allocations: 0.5157 MB / 0.5696 GB, free: 15.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/0.6238, allocations: 13.77 MB / 0.583 GB, free: 2.012 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07697/0.7007, allocations: 47.29 MB / 0.6292 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3872/1.088, allocations: 28.24 MB / 0.6568 GB, free: 127.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005586/1.094, allocations: 2.832 MB / 0.6595 GB, free: 127.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003748/1.094, allocations: 240.9 kB / 0.6598 GB, free: 127 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/1.094, allocations: 72.89 kB / 0.6598 GB, free: 127 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=394): time 5.731e-06/1.094, allocations: 0 / 0.6598 GB, free: 127 MB / 0.5138 GB Notification: Performance of matching and sorting (n=477): time 0.05368/1.148, allocations: 25.55 MB / 0.6848 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/1.148, allocations: 98.66 kB / 0.6849 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004692/1.152, allocations: 3.601 MB / 0.6884 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006796/1.153, allocations: 102 kB / 0.6885 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002004/1.155, allocations: 4.191 MB / 0.6926 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001464/1.157, allocations: 1.698 MB / 0.6942 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/1.158, allocations: 1.284 MB / 0.6955 GB, free: 111.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.118e-05/1.158, allocations: 301.1 kB / 0.6958 GB, free: 111.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/1.162, allocations: 3.062 MB / 0.6988 GB, free: 110 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004598/1.167, allocations: 5.612 MB / 0.7043 GB, free: 105.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008799/1.176, allocations: 9.434 MB / 0.7135 GB, free: 98.18 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.727e-05/1.176, allocations: 27.94 kB / 0.7135 GB, free: 98.15 MB / 0.5138 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.01644/1.192, allocations: 10.41 MB / 0.7237 GB, free: 87.73 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.092e-05/1.192, allocations: 42.3 kB / 0.7237 GB, free: 87.69 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.813e-05/1.192, allocations: 84 kB / 0.7238 GB, free: 87.61 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003977/1.196, allocations: 1.672 MB / 0.7254 GB, free: 85.93 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004799/1.201, allocations: 1.439 MB / 0.7268 GB, free: 84.49 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01815/1.219, allocations: 16.01 MB / 0.7425 GB, free: 68.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005159/1.224, allocations: 347.5 kB / 0.7428 GB, free: 67.86 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.226, allocations: 335.9 kB / 0.7431 GB, free: 67.54 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (760): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,40,65.6%), (8,40,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005618/1.231, allocations: 3.607 MB / 0.7466 GB, free: 63.91 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.232, allocations: 453.1 kB / 0.7471 GB, free: 63.47 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/1.244, allocations: 7.782 MB / 0.7547 GB, free: 55.66 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.501e-05/1.244, allocations: 48 kB / 0.7547 GB, free: 55.62 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.616e-05/1.244, allocations: 18.19 kB / 0.7547 GB, free: 55.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.014e-05/1.244, allocations: 27.84 kB / 0.7547 GB, free: 55.57 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02785/1.272, allocations: 18.39 MB / 0.7727 GB, free: 37.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/1.272, allocations: 8 kB / 0.7727 GB, free: 37.06 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/1.275, allocations: 0.7575 MB / 0.7735 GB, free: 36.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003662/1.279, allocations: 1.462 MB / 0.7749 GB, free: 34.83 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005864/1.28, allocations: 104 kB / 0.775 GB, free: 34.73 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/1.295, allocations: 14.11 MB / 0.7888 GB, free: 20.36 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.295, allocations: 8 kB / 0.7888 GB, free: 20.35 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/1.309, allocations: 11.26 MB / 0.7998 GB, free: 8.98 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002319/1.311, allocations: 1.037 MB / 0.8008 GB, free: 7.922 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007588/1.312, allocations: 99.8 kB / 0.8009 GB, free: 7.828 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002196/1.314, allocations: 215.7 kB / 0.8011 GB, free: 7.617 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006529/1.315, allocations: 335.2 kB / 0.8014 GB, free: 7.289 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002465/1.315, allocations: 132 kB / 0.8015 GB, free: 7.16 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003083/1.318, allocations: 2.415 MB / 0.8039 GB, free: 4.758 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/1.318, allocations: 0 / 0.8039 GB, free: 4.758 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006225/1.325, allocations: 1.727 MB / 0.8056 GB, free: 3.031 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (smpmQS.phiMechanical) * 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 (418): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,38,59.4%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01951/1.344, allocations: 12.01 MB / 0.8173 GB, free: 6.906 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0157/1.36, allocations: 7.915 MB / 0.825 GB, free: 14.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.36, allocations: 0 / 0.825 GB, free: 14.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008369/1.368, allocations: 3.788 MB / 0.8287 GB, free: 11.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005554/1.374, allocations: 0.9905 MB / 0.8297 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2831/1.657, allocations: 58.4 MB / 0.8867 GB, free: 155.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005614/1.662, allocations: 6.146 MB / 0.8927 GB, free: 152.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004229/1.667, allocations: 1.942 MB / 0.8946 GB, free: 152.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003786/1.67, allocations: 3.288 MB / 0.8978 GB, free: 149.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/1.67, allocations: 1.875 kB / 0.8978 GB, free: 149.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1819/1.852, allocations: 135.1 MB / 1.03 GB, free: 16.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/20.9, allocations: 7.297 kB / 1.03 GB, free: 16.21 MB / 0.545 GB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.30322621902451]