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.001715/0.001715, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002114/0.002114, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.39/1.39, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.001787/0.001787, allocations: 59.91 kB / 378.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.272, allocations: 53.41 MB / 432 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03191/0.3039, allocations: 28.8 MB / 460.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01884/0.3228, allocations: 8.532 MB / 469.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00707/0.3299, allocations: 258.7 kB / 469.6 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01939/0.3492, allocations: 8.295 MB / 477.9 MB, free: 8.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.3597, allocations: 2.913 MB / 480.8 MB, free: 5.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007272/0.3669, allocations: 1.937 MB / 482.7 MB, free: 3.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01468/0.3816, allocations: 10.1 MB / 492.8 MB, free: 9.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02464/0.4063, allocations: 14.05 MB / 0.495 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00928/0.4155, allocations: 5.482 MB / 0.5004 GB, free: 5.973 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01071/0.4262, allocations: 6.152 MB / 0.5064 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004386/0.4306, allocations: 1.539 MB / 0.5079 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006139/0.4368, allocations: 1.933 MB / 0.5098 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004437/0.4412, allocations: 2.989 MB / 0.5127 GB, free: 9.332 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009812/0.451, allocations: 5.844 MB / 0.5184 GB, free: 3.465 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.452/0.903, allocations: 20.7 MB / 0.5386 GB, free: 37.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.903, allocations: 1.234 kB / 0.5386 GB, free: 37.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.903, allocations: 0 / 0.5386 GB, free: 37.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006382/0.9037, allocations: 0.5312 kB / 0.5386 GB, free: 37.96 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.03753/0.9412, allocations: 12.02 MB / 0.5503 GB, free: 34.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.9413, allocations: 8.375 kB / 0.5504 GB, free: 34.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004597/0.9417, allocations: 289.3 kB / 0.5506 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006536/0.9483, allocations: 1.544 MB / 0.5521 GB, free: 34.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03044/0.9787, allocations: 5.599 MB / 0.5576 GB, free: 33.89 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/0.9957, allocations: 6.385 MB / 0.5638 GB, free: 33.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008968/0.9966, allocations: 0.7047 MB / 0.5645 GB, free: 32.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004455/1.001, allocations: 0.9378 MB / 0.5654 GB, free: 32.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03684/1.038, allocations: 15.13 MB / 0.5802 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005052/1.038, allocations: 15.91 kB / 0.5802 GB, free: 23.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003538/1.042, allocations: 394 kB / 0.5806 GB, free: 22.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004447/1.042, allocations: 0.5195 MB / 0.5811 GB, free: 22.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02796/1.07, allocations: 13.79 MB / 0.5946 GB, free: 8.395 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09971/1.17, allocations: 46.62 MB / 0.6401 GB, free: 9.586 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01676/1.187, allocations: 8.097 MB / 0.648 GB, free: 2.785 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005992/1.193, allocations: 2.826 MB / 0.6508 GB, free: 15.95 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006088/1.193, allocations: 120.8 kB / 0.6509 GB, free: 15.85 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/1.193, allocations: 73.66 kB / 0.651 GB, free: 15.77 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=394): time 9.578e-06/1.194, allocations: 4 kB / 0.651 GB, free: 15.76 MB / 0.4982 GB Notification: Performance of matching and sorting (n=477): time 0.07261/1.266, allocations: 25.38 MB / 0.6758 GB, free: 6.504 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.266, allocations: 99.16 kB / 0.6758 GB, free: 6.395 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007734/1.274, allocations: 3.615 MB / 0.6794 GB, free: 2.785 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009943/1.275, allocations: 105.7 kB / 0.6795 GB, free: 2.676 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003959/1.279, allocations: 4.181 MB / 0.6836 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002638/1.282, allocations: 1.707 MB / 0.6852 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003995/1.286, allocations: 1.287 MB / 0.6865 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.286, allocations: 301.1 kB / 0.6868 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005918/1.292, allocations: 3.077 MB / 0.6898 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008564/1.3, allocations: 5.612 MB / 0.6953 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0157/1.316, allocations: 9.446 MB / 0.7045 GB, free: 7.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/1.316, allocations: 24 kB / 0.7045 GB, free: 7.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=854) (initialization): time 0.02415/1.34, allocations: 10.43 MB / 0.7147 GB, free: 13.19 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/1.34, allocations: 43.94 kB / 0.7147 GB, free: 13.15 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/1.34, allocations: 84 kB / 0.7148 GB, free: 13.07 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00528/1.346, allocations: 1.672 MB / 0.7164 GB, free: 11.39 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005957/1.352, allocations: 1.443 MB / 0.7179 GB, free: 10.05 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02597/1.378, allocations: 15.8 MB / 0.7333 GB, free: 10.09 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005757/1.383, allocations: 357.9 kB / 0.7336 GB, free: 9.746 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001767/1.385, allocations: 335.9 kB / 0.734 GB, free: 9.418 MB / 0.5763 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.01015/1.395, allocations: 3.597 MB / 0.7375 GB, free: 5.91 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001873/1.397, allocations: 456.8 kB / 0.7379 GB, free: 5.465 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01834/1.416, allocations: 7.796 MB / 0.7455 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.603e-05/1.416, allocations: 48 kB / 0.7456 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-05/1.416, allocations: 12 kB / 0.7456 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/1.416, allocations: 23.91 kB / 0.7456 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3413/1.757, allocations: 18.42 MB / 0.7636 GB, free: 225.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.356e-05/1.757, allocations: 10.69 kB / 0.7636 GB, free: 225.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003069/1.76, allocations: 0.7679 MB / 0.7643 GB, free: 225.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003776/1.764, allocations: 1.452 MB / 0.7658 GB, free: 225.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005822/1.764, allocations: 105.1 kB / 0.7659 GB, free: 225.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01643/1.781, allocations: 13.9 MB / 0.7794 GB, free: 218.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/1.781, allocations: 11.66 kB / 0.7794 GB, free: 218.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01683/1.798, allocations: 11.29 MB / 0.7905 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003173/1.801, allocations: 0.9924 MB / 0.7914 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009631/1.802, allocations: 95.66 kB / 0.7915 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002481/1.804, allocations: 212.5 kB / 0.7917 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007701/1.805, allocations: 357.3 kB / 0.7921 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/1.805, allocations: 140.2 kB / 0.7922 GB, free: 213.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003629/1.809, allocations: 2.414 MB / 0.7946 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/1.809, allocations: 0 / 0.7946 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007108/1.816, allocations: 1.735 MB / 0.7963 GB, free: 212.5 MB / 0.5919 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.01594/1.832, allocations: 12.03 MB / 0.808 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01192/1.844, allocations: 7.919 MB / 0.8157 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.906e-06/1.844, allocations: 0 / 0.8157 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005939/1.85, allocations: 3.808 MB / 0.8195 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005227/1.855, allocations: 0.987 MB / 0.8204 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09785/1.953, allocations: 58.51 MB / 0.8776 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01037/1.963, allocations: 6.14 MB / 0.8836 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00614/1.97, allocations: 1.95 MB / 0.8855 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005638/1.975, allocations: 3.303 MB / 0.8887 GB, free: 116.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.352e-06/1.975, allocations: 0 / 0.8887 GB, free: 116.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4727/2.448, allocations: 141.3 MB / 1.027 GB, free: 217.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.43/23.88, allocations: 14.38 kB / 1.027 GB, free: 217.2 MB / 0.5919 GB " [Timeout remaining time 636] (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.33973954099929]