Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 103.3 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 64.06 kB / 306.4 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09343, allocations: 50.52 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2607/0.3542, allocations: 15.59 MB / 372.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.3654, allocations: 5.288 MB / 377.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004168/0.3697, allocations: 97.38 kB / 377.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00431/0.3741, allocations: 0.934 MB / 378.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005685/0.3798, allocations: 1.124 MB / 379.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003285/0.3831, allocations: 0.8515 MB / 380.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007132/0.3902, allocations: 3.795 MB / 384.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003668/0.3939, allocations: 2.783 MB / 387.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003067/0.397, allocations: 1.455 MB / 388.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002956/0.4, allocations: 1.926 MB / 390.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006885/0.4007, allocations: 291.2 kB / 391 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.4024, allocations: 0.529 MB / 391.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008074/0.4032, allocations: 0.9433 MB / 392.5 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001862/0.4051, allocations: 1.852 MB / 394.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005238/0.4104, allocations: 6.107 MB / 400.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.4104, allocations: 0 / 400.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.4104, allocations: 0 / 400.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.332e-05/0.4105, allocations: 0 / 400.5 MB, free: 13.95 MB / 318.1 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.008832/0.4193, allocations: 4.267 MB / 404.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4194, allocations: 9.469 kB / 404.7 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005222/0.4199, allocations: 450.8 kB / 405.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/0.4226, allocations: 0.6234 MB / 405.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.4258, allocations: 2.204 MB / 408 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.426, allocations: 242 kB / 408.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000397/0.4264, allocations: 319.8 kB / 408.6 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006081/0.4325, allocations: 4.047 MB / 412.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.117e-05/0.4326, allocations: 11.84 kB / 412.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002664/0.4329, allocations: 130.9 kB / 412.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.433, allocations: 146.2 kB / 412.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005286/0.4383, allocations: 3.391 MB / 416.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01774/0.456, allocations: 13.48 MB / 429.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/0.4601, allocations: 4.282 MB / 434 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4617, allocations: 1.042 MB / 435.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004216/0.4659, allocations: 2.856 MB / 437.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.466, allocations: 43.56 kB / 438 MB, free: 8.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.275e-06/0.466, allocations: 0 / 438 MB, free: 8.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.0106/0.4766, allocations: 5.985 MB / 444 MB, free: 2.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.4766, allocations: 72.72 kB / 444 MB, free: 2.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002593/0.4792, allocations: 1.905 MB / 445.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.447e-05/0.4793, allocations: 45.7 kB / 446 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009117/0.4803, allocations: 1.516 MB / 447.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003436/0.4806, allocations: 491.7 kB / 448 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004783/0.4811, allocations: 331.2 kB / 448.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.4812, allocations: 309.1 kB / 448.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.4823, allocations: 0.7691 MB / 449.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/0.4839, allocations: 1.379 MB / 450.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.4869, allocations: 2.316 MB / 453.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.4869, allocations: 4 kB / 453.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004032/0.4909, allocations: 2.477 MB / 455.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.491, allocations: 16 kB / 455.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.633e-05/0.491, allocations: 20 kB / 455.6 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003787/0.4914, allocations: 122.5 kB / 455.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.4932, allocations: 487.5 kB / 456.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.4943, allocations: 1.305 MB / 457.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.4958, allocations: 127.6 kB / 457.6 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.496, allocations: 76 kB / 457.7 MB, free: 4.422 MB / 366.1 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001859/0.4979, allocations: 0.9891 MB / 458.7 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004391/0.4983, allocations: 205.4 kB / 458.9 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003472/0.5018, allocations: 1.966 MB / 460.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.5018, allocations: 12 kB / 460.9 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5018, allocations: 7.875 kB / 460.9 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.5019, allocations: 7.969 kB / 460.9 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009119/0.511, allocations: 4.994 MB / 465.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.511, allocations: 7.938 kB / 465.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/0.5124, allocations: 303.5 kB / 466.2 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/0.5127, allocations: 98.77 kB / 466.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5128, allocations: 28 kB / 466.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008895/0.5137, allocations: 1.288 MB / 467.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5137, allocations: 3.938 kB / 467.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.5186, allocations: 3.077 MB / 470.7 MB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009684/0.5195, allocations: 458.5 kB / 471.1 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00045/0.52, allocations: 31.94 kB / 471.1 MB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.5211, allocations: 83.91 kB / 471.2 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.5213, allocations: 85.12 kB / 471.3 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.552e-05/0.5214, allocations: 40 kB / 471.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002273/0.5237, allocations: 1.294 MB / 472.6 MB, free: 5.129 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5237, allocations: 4 kB / 472.6 MB, free: 5.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002014/0.5258, allocations: 0.5429 MB / 473.2 MB, free: 4.582 MB / 382.1 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004941/0.5307, allocations: 3.716 MB / 476.9 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003372/0.5341, allocations: 2.203 MB / 479.1 MB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.5341, allocations: 1.875 kB / 479.1 MB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.5357, allocations: 1.178 MB / 480.3 MB, free: 13.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.5382, allocations: 0.4891 MB / 480.8 MB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04409/0.5823, allocations: 23.69 MB / 0.4926 GB, free: 3.188 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003329/0.5857, allocations: 2.268 MB / 0.4948 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002181/0.5879, allocations: 0.5133 MB / 0.4953 GB, free: 380 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/0.5899, allocations: 1.186 MB / 0.4965 GB, free: 15.22 MB / 430.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5899, allocations: 0 / 0.4965 GB, free: 15.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.67/3.26, allocations: 47.75 MB / 0.5431 GB, free: 142.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/3.261, allocations: 277.3 kB / 0.5434 GB, free: 142.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.715/6.976, allocations: 0 / 0.5434 GB, free: 142.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches