Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001119/0.001119, allocations: 196.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006886/0.0006886, allocations: 97.36 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 11.98 kB / 356.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1712, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.009556/0.1807, allocations: 13.89 MB / 422 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005968/0.1867, allocations: 4.931 MB / 427 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.1879, allocations: 91.62 kB / 427.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.1894, allocations: 0.8194 MB / 427.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.1913, allocations: 1.017 MB / 428.9 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.1924, allocations: 0.6419 MB / 429.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.1949, allocations: 3.608 MB / 433.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002236/0.1971, allocations: 2.763 MB / 435.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.1984, allocations: 1.198 MB / 437.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.1999, allocations: 1.579 MB / 438.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.2002, allocations: 188 kB / 438.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008309/0.201, allocations: 439.6 kB / 439.3 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000613/0.2017, allocations: 0.7824 MB / 440.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.203, allocations: 1.619 MB / 441.7 MB, free: 9.992 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.2066, allocations: 5.111 MB / 446.8 MB, free: 4.867 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2066, allocations: 4 kB / 446.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2066, allocations: 0 / 446.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.831e-05/0.2067, allocations: 0 / 446.8 MB, free: 4.863 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.006986/0.2137, allocations: 3.603 MB / 450.4 MB, free: 1.188 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2137, allocations: 8.031 kB / 450.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005656/0.2143, allocations: 455.2 kB / 450.9 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/0.2167, allocations: 0.6212 MB / 451.5 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.22, allocations: 2.214 MB / 453.7 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.2202, allocations: 246.5 kB / 453.9 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003886/0.2206, allocations: 319.9 kB / 454.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005849/0.2265, allocations: 4.019 MB / 458.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.249e-05/0.2265, allocations: 7.844 kB / 458.3 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002544/0.2268, allocations: 128 kB / 458.4 MB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.2269, allocations: 146.2 kB / 458.6 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004935/0.2319, allocations: 3.374 MB / 461.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01622/0.2481, allocations: 13.54 MB / 475.5 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.2518, allocations: 4.263 MB / 479.7 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.2533, allocations: 1.047 MB / 480.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003698/0.257, allocations: 2.866 MB / 483.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.2571, allocations: 51.56 kB / 483.7 MB, free: 14.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.224e-06/0.2571, allocations: 0 / 483.7 MB, free: 14.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.009804/0.2669, allocations: 5.976 MB / 489.7 MB, free: 8.512 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.2669, allocations: 68.72 kB / 489.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/0.2692, allocations: 1.894 MB / 491.6 MB, free: 6.492 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.215e-05/0.2692, allocations: 49.7 kB / 491.7 MB, free: 6.438 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008356/0.2701, allocations: 1.509 MB / 493.2 MB, free: 4.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.2704, allocations: 492.9 kB / 493.7 MB, free: 4.422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-05/0.2705, allocations: 40 kB / 493.7 MB, free: 4.383 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2706, allocations: 377.8 kB / 494.1 MB, free: 4.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.2717, allocations: 0.7613 MB / 494.8 MB, free: 3.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.2731, allocations: 1.371 MB / 496.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/0.2758, allocations: 2.308 MB / 498.5 MB, free: 15.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.2758, allocations: 4 kB / 498.5 MB, free: 15.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003418/0.2792, allocations: 2.469 MB / 0.4892 GB, free: 12.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.2793, allocations: 12.69 kB / 0.4893 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.2793, allocations: 27.92 kB / 0.4893 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003174/0.2796, allocations: 114.5 kB / 0.4894 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.2813, allocations: 487.2 kB / 0.4899 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008217/0.2821, allocations: 1.303 MB / 0.4911 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.2833, allocations: 123.9 kB / 0.4913 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.2834, allocations: 83.98 kB / 0.4913 GB, free: 10.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001428/0.2849, allocations: 0.9861 MB / 0.4923 GB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/0.2851, allocations: 209.5 kB / 0.4925 GB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/0.2881, allocations: 1.958 MB / 0.4944 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.2881, allocations: 15.94 kB / 0.4944 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2881, allocations: 0 / 0.4944 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.2881, allocations: 11.97 kB / 0.4944 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006614/0.2947, allocations: 4.997 MB / 0.4993 GB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.2948, allocations: 7.938 kB / 0.4993 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.296, allocations: 311.5 kB / 0.4996 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002639/0.2963, allocations: 90.78 kB / 0.4997 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.653e-05/0.2964, allocations: 35.98 kB / 0.4997 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007349/0.2971, allocations: 1.277 MB / 0.501 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.2972, allocations: 7.938 kB / 0.501 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1507/0.4479, allocations: 3.064 MB / 0.504 GB, free: 88.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008343/0.4487, allocations: 467.9 kB / 0.5044 GB, free: 88.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.449, allocations: 27.91 kB / 0.5045 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008985/0.4499, allocations: 84.59 kB / 0.5045 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.4501, allocations: 87.23 kB / 0.5046 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.83e-05/0.4502, allocations: 38.61 kB / 0.5047 GB, free: 88.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001599/0.4518, allocations: 1.284 MB / 0.5059 GB, free: 88.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4518, allocations: 3.875 kB / 0.5059 GB, free: 88.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001455/0.4532, allocations: 0.537 MB / 0.5064 GB, free: 88.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004155/0.4574, allocations: 3.701 MB / 0.5101 GB, free: 86.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002727/0.4601, allocations: 2.21 MB / 0.5122 GB, free: 85.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4601, allocations: 0 / 0.5122 GB, free: 85.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.4614, allocations: 1.177 MB / 0.5134 GB, free: 84.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.4639, allocations: 499.6 kB / 0.5138 GB, free: 84.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02219/0.4861, allocations: 16.87 MB / 0.5303 GB, free: 69.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.4874, allocations: 2.213 MB / 0.5325 GB, free: 67.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/0.4887, allocations: 1.198 MB / 0.5336 GB, free: 66.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4887, allocations: 0 / 0.5336 GB, free: 66.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.484/5.973, allocations: 95.18 MB / 0.6266 GB, free: 2.949 MB / 410.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches