Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.001265/0.001265, 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.001414/0.001414, allocations: 213.5 kB / 24.52 MB, free: 3.918 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.384/1.384, allocations: 230.5 MB / 258.2 MB, free: 7.754 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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.0018/0.0018, allocations: 55.91 kB / 378.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.286, allocations: 53.4 MB / 431.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03036/0.3164, allocations: 24.61 MB / 456.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02005/0.3364, allocations: 8.148 MB / 464.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008348/0.3448, allocations: 250.8 kB / 464.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02154/0.3663, allocations: 7.631 MB / 472.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01271/0.379, allocations: 2.856 MB / 475.4 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006571/0.3856, allocations: 1.856 MB / 477.3 MB, free: 8.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01533/0.4009, allocations: 10.09 MB / 487.4 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0333/0.4342, allocations: 14.04 MB / 0.4897 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01156/0.4458, allocations: 5.49 MB / 0.495 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0127/0.4585, allocations: 6.152 MB / 0.501 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005449/0.4639, allocations: 1.539 MB / 0.5025 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007078/0.471, allocations: 1.925 MB / 0.5044 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006385/0.4774, allocations: 2.989 MB / 0.5073 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01199/0.4894, allocations: 4.541 MB / 0.5118 GB, free: 9.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0335/0.5229, allocations: 20.79 MB / 0.5321 GB, free: 5.074 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.1e-05/0.5229, allocations: 0 / 0.5321 GB, free: 5.074 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5229, allocations: 0 / 0.5321 GB, free: 5.074 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008082/0.5237, allocations: 0 / 0.5321 GB, free: 5.074 MB / 446.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.4256/0.9493, allocations: 12.02 MB / 0.5438 GB, free: 91.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/0.9494, allocations: 7.875 kB / 0.5438 GB, free: 91.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0005148/0.9499, allocations: 292.5 kB / 0.5441 GB, free: 91.11 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006299/0.9562, allocations: 1.55 MB / 0.5456 GB, free: 90.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02869/0.9849, allocations: 5.599 MB / 0.5511 GB, free: 85.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01156/0.9964, allocations: 6.382 MB / 0.5573 GB, free: 79.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005583/0.997, allocations: 0.7096 MB / 0.558 GB, free: 78.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00327/1, allocations: 0.9361 MB / 0.5589 GB, free: 77.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03274/1.033, allocations: 15.28 MB / 0.5738 GB, free: 62.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004649/1.033, allocations: 23.89 kB / 0.5739 GB, free: 62.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00353/1.037, allocations: 392.7 kB / 0.5742 GB, free: 61.71 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004289/1.037, allocations: 0.5117 MB / 0.5747 GB, free: 61.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02524/1.063, allocations: 13.8 MB / 0.5882 GB, free: 47.36 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06651/1.129, allocations: 42.77 MB / 0.63 GB, free: 4.184 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/1.141, allocations: 8.023 MB / 0.6378 GB, free: 13.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004817/1.146, allocations: 2.831 MB / 0.6406 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003444/1.146, allocations: 91.02 kB / 0.6407 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.095e-05/1.146, allocations: 77.64 kB / 0.6407 GB, free: 10.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=394): time 6.552e-06/1.146, allocations: 0 / 0.6407 GB, free: 10.37 MB / 462.1 MB Notification: Performance of matching and sorting (n=477): time 0.06047/1.207, allocations: 25.39 MB / 0.6655 GB, free: 1.047 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/1.207, allocations: 103.1 kB / 0.6656 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005754/1.213, allocations: 3.619 MB / 0.6692 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006042/1.213, allocations: 101.7 kB / 0.6693 GB, free: 13.21 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003395/1.217, allocations: 4.182 MB / 0.6734 GB, free: 8.992 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002309/1.219, allocations: 1.704 MB / 0.675 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002253/1.221, allocations: 1.287 MB / 0.6763 GB, free: 5.977 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/1.221, allocations: 305.1 kB / 0.6766 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004855/1.226, allocations: 3.07 MB / 0.6796 GB, free: 2.602 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0072/1.234, allocations: 5.632 MB / 0.6851 GB, free: 11.79 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/1.248, allocations: 9.452 MB / 0.6943 GB, free: 1.168 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.695e-05/1.248, allocations: 24 kB / 0.6943 GB, free: 1.145 MB / 0.4982 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02386/1.272, allocations: 10.42 MB / 0.7045 GB, free: 6.707 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000142/1.272, allocations: 40 kB / 0.7045 GB, free: 6.668 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/1.273, allocations: 88.03 kB / 0.7046 GB, free: 6.582 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005343/1.278, allocations: 1.664 MB / 0.7062 GB, free: 4.91 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005837/1.284, allocations: 1.447 MB / 0.7077 GB, free: 3.461 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02554/1.309, allocations: 15.54 MB / 0.7228 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004909/1.314, allocations: 355.5 kB / 0.7232 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.316, allocations: 335.9 kB / 0.7235 GB, free: 2.996 MB / 0.5294 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.007718/1.323, allocations: 3.606 MB / 0.727 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001494/1.325, allocations: 457.1 kB / 0.7274 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/1.34, allocations: 7.785 MB / 0.735 GB, free: 7.113 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.995e-05/1.34, allocations: 52 kB / 0.7351 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.85e-05/1.34, allocations: 12 kB / 0.7351 GB, free: 7.051 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-05/1.34, allocations: 27.84 kB / 0.7351 GB, free: 7.023 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03639/1.377, allocations: 17.65 MB / 0.7524 GB, free: 5.129 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.021e-05/1.377, allocations: 8 kB / 0.7524 GB, free: 5.121 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003442/1.38, allocations: 0.7691 MB / 0.7531 GB, free: 4.352 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004286/1.384, allocations: 1.446 MB / 0.7545 GB, free: 2.898 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006504/1.385, allocations: 112 kB / 0.7546 GB, free: 2.789 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2291/1.614, allocations: 13.66 MB / 0.768 GB, free: 191.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.614, allocations: 7.875 kB / 0.768 GB, free: 191.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.628, allocations: 11.28 MB / 0.779 GB, free: 187 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/1.631, allocations: 0.9909 MB / 0.78 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007091/1.631, allocations: 88.67 kB / 0.7801 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/1.633, allocations: 203.9 kB / 0.7803 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000724/1.634, allocations: 363.6 kB / 0.7806 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/1.634, allocations: 137.8 kB / 0.7807 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.002912/1.637, allocations: 2.419 MB / 0.7831 GB, free: 185.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 6e-08/1.637, allocations: 0 / 0.7831 GB, free: 185.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005294/1.642, allocations: 1.737 MB / 0.7848 GB, free: 185.5 MB / 0.5607 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.01387/1.656, allocations: 12.04 MB / 0.7966 GB, free: 176.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.667, allocations: 7.925 MB / 0.8043 GB, free: 169.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.667, allocations: 0 / 0.8043 GB, free: 169.7 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005206/1.672, allocations: 3.801 MB / 0.808 GB, free: 166.3 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004656/1.677, allocations: 0.9882 MB / 0.809 GB, free: 165.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07749/1.754, allocations: 58.49 MB / 0.8661 GB, free: 103.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005261/1.759, allocations: 5.699 MB / 0.8717 GB, free: 98.11 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004089/1.764, allocations: 1.942 MB / 0.8736 GB, free: 96.16 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/1.767, allocations: 3.3 MB / 0.8768 GB, free: 92.86 MB / 0.5607 GB Notification: Performance of SimCode: time 1.273e-06/1.767, allocations: 0 / 0.8768 GB, free: 92.86 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3758/2.143, allocations: 141.3 MB / 1.015 GB, free: 157.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.42/24.56, allocations: 11.53 kB / 1.015 GB, free: 157.3 MB / 0.5607 GB " [Timeout remaining time 635] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 28.64530295599252]