Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 226.5 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007647/0.0007646, allocations: 98.33 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001982/0.0001982, allocations: 4 kB / 356.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1944, allocations: 51.3 MB / 408.2 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02687/0.2213, allocations: 35.14 MB / 443.3 MB, free: 8.449 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.24, allocations: 9.871 MB / 453.2 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004614/0.2446, allocations: 279.1 kB / 453.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003876/0.2485, allocations: 1.658 MB / 455.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007113/0.2557, allocations: 2.827 MB / 457.9 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003602/0.2593, allocations: 1.543 MB / 459.5 MB, free: 8.246 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01463/0.2739, allocations: 13.96 MB / 473.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03236/0.3063, allocations: 23.65 MB / 497.1 MB, free: 2.449 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006467/0.3128, allocations: 4.788 MB / 0.4901 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006687/0.3195, allocations: 5.677 MB / 0.4957 GB, free: 7.945 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00136/0.3209, allocations: 0.7617 MB / 0.4964 GB, free: 7.184 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002787/0.3237, allocations: 1.156 MB / 0.4975 GB, free: 6.027 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002004/0.3257, allocations: 2.445 MB / 0.4999 GB, free: 3.574 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1654/0.491, allocations: 5.72 MB / 0.5055 GB, free: 29.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.5071, allocations: 21.72 MB / 0.5267 GB, free: 21.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.5071, allocations: 3.156 kB / 0.5267 GB, free: 21.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5071, allocations: 2.062 kB / 0.5267 GB, free: 21.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005219/0.5077, allocations: 0 / 0.5267 GB, free: 21.56 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02775/0.5354, allocations: 12.45 MB / 0.5389 GB, free: 15.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.5355, allocations: 11.53 kB / 0.5389 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003608/0.5391, allocations: 1.713 MB / 0.5406 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02754/0.5666, allocations: 6.149 MB / 0.5466 GB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01269/0.5793, allocations: 7.816 MB / 0.5542 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005859/0.5799, allocations: 0.9128 MB / 0.5551 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002652/0.5826, allocations: 1.196 MB / 0.5563 GB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03459/0.6172, allocations: 18.62 MB / 0.5744 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004147/0.6177, allocations: 23.36 kB / 0.5745 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002462/0.6201, allocations: 0.4901 MB / 0.5749 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006434/0.6208, allocations: 0.6378 MB / 0.5756 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03212/0.6529, allocations: 16.67 MB / 0.5918 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08575/0.7387, allocations: 59.74 MB / 0.6502 GB, free: 2.988 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2026/0.9413, allocations: 33.15 MB / 0.6826 GB, free: 166.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006328/0.9477, allocations: 3.757 MB / 0.6862 GB, free: 166.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/0.9603, allocations: 8.897 MB / 0.6949 GB, free: 163.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.9603, allocations: 76.84 kB / 0.695 GB, free: 163.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 4.057e-06/0.9603, allocations: 0 / 0.695 GB, free: 163.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.02762/0.9879, allocations: 17.54 MB / 0.7121 GB, free: 156.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.988, allocations: 97.16 kB / 0.7122 GB, free: 156.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005392/0.9934, allocations: 4.997 MB / 0.7171 GB, free: 154.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.9936, allocations: 85.48 kB / 0.7172 GB, free: 154.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/0.9956, allocations: 5.447 MB / 0.7225 GB, free: 149.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006754/0.9963, allocations: 1.354 MB / 0.7238 GB, free: 148.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/0.9966, allocations: 140 kB / 0.7239 GB, free: 148.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002473/0.9968, allocations: 0.5741 MB / 0.7245 GB, free: 148 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003346/1, allocations: 2.884 MB / 0.7273 GB, free: 145.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004195/1.004, allocations: 5.85 MB / 0.733 GB, free: 138.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/1.012, allocations: 9.407 MB / 0.7422 GB, free: 128.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.032e-05/1.012, allocations: 32 kB / 0.7423 GB, free: 128.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01173/1.024, allocations: 9.79 MB / 0.7518 GB, free: 119.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/1.024, allocations: 53.67 kB / 0.7519 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.788e-05/1.024, allocations: 100 kB / 0.752 GB, free: 119.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/1.026, allocations: 0.9377 MB / 0.7529 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004469/1.031, allocations: 1.583 MB / 0.7544 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00842/1.039, allocations: 9.494 MB / 0.7637 GB, free: 107 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003879/1.043, allocations: 403.2 kB / 0.7641 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004032/1.043, allocations: 352 kB / 0.7644 GB, free: 106.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005475/1.049, allocations: 4.247 MB / 0.7686 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007217/1.05, allocations: 0.5132 MB / 0.7691 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008619/1.058, allocations: 6.475 MB / 0.7754 GB, free: 94.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/1.058, allocations: 40 kB / 0.7754 GB, free: 94.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.058, allocations: 9.531 kB / 0.7754 GB, free: 94.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.744e-05/1.058, allocations: 19.92 kB / 0.7755 GB, free: 94.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/1.077, allocations: 15.7 MB / 0.7908 GB, free: 79.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/1.077, allocations: 4 kB / 0.7908 GB, free: 79.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/1.08, allocations: 0.7454 MB / 0.7915 GB, free: 78.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/1.082, allocations: 0.7845 MB / 0.7923 GB, free: 77.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/1.082, allocations: 87.97 kB / 0.7924 GB, free: 77.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007432/1.089, allocations: 8.661 MB / 0.8008 GB, free: 68.43 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.089, allocations: 8.156 kB / 0.8008 GB, free: 68.43 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.1, allocations: 9.454 MB / 0.8101 GB, free: 58.86 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.102, allocations: 1.069 MB / 0.8111 GB, free: 57.77 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005137/1.102, allocations: 75.92 kB / 0.8112 GB, free: 57.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.104, allocations: 223.8 kB / 0.8114 GB, free: 57.48 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006177/1.105, allocations: 269.9 kB / 0.8116 GB, free: 57.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.105, allocations: 116 kB / 0.8118 GB, free: 57.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0038/1.109, allocations: 3.315 MB / 0.815 GB, free: 53.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.109, allocations: 3.844 kB / 0.815 GB, free: 53.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004876/1.114, allocations: 1.886 MB / 0.8168 GB, free: 51.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01099/1.125, allocations: 10.2 MB / 0.8268 GB, free: 41.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008811/1.134, allocations: 7.593 MB / 0.8342 GB, free: 33.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.134, allocations: 1.875 kB / 0.8342 GB, free: 33.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003913/1.137, allocations: 3.557 MB / 0.8377 GB, free: 30.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006425/1.144, allocations: 1.221 MB / 0.8389 GB, free: 29.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2489/1.393, allocations: 58.98 MB / 0.8965 GB, free: 147.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008609/1.401, allocations: 7.109 MB / 0.9034 GB, free: 142.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005084/1.407, allocations: 4.374 MB / 0.9077 GB, free: 138 MB / 490.7 MB Notification: Performance of SimCode: time 8.22e-07/1.407, allocations: 0 / 0.9077 GB, free: 138 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.87/12.27, allocations: 0.4956 GB / 1.403 GB, free: 145.5 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches