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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001305/0.001305, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.513/1.513, allocations: 230.2 MB / 254.5 MB, free: 15.4 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.89 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1078, allocations: 53.32 MB / 426.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01906/0.1269, allocations: 15.87 MB / 442.6 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2367/0.3636, allocations: 5.356 MB / 447.9 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003246/0.3668, allocations: 99.31 kB / 448 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003634/0.3704, allocations: 1.145 MB / 449.2 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004213/0.3746, allocations: 1.281 MB / 450.4 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.3771, allocations: 0.925 MB / 451.4 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005179/0.3822, allocations: 3.647 MB / 455 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003665/0.3859, allocations: 2.373 MB / 457.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003874/0.3898, allocations: 1.745 MB / 459.1 MB, free: 7.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004214/0.394, allocations: 2.146 MB / 461.3 MB, free: 6.348 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.3954, allocations: 479.8 kB / 461.7 MB, free: 6.348 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.398, allocations: 0.7044 MB / 462.4 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001376/0.3994, allocations: 1.152 MB / 463.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004182/0.4036, allocations: 2.055 MB / 465.7 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00947/0.413, allocations: 6.321 MB / 472 MB, free: 1.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.4131, allocations: 3.984 kB / 472 MB, free: 1.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4131, allocations: 0 / 472 MB, free: 1.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002306/0.4133, allocations: 0 / 472 MB, free: 1.57 MB / 366.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.01428/0.4276, allocations: 4.364 MB / 476.3 MB, free: 14.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.4276, allocations: 9.406 kB / 476.4 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001153/0.4288, allocations: 447.2 kB / 476.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003338/0.4321, allocations: 0.6359 MB / 477.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006104/0.4382, allocations: 2.309 MB / 479.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/0.4385, allocations: 238.8 kB / 480 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/0.4395, allocations: 307.8 kB / 480.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009023/0.4486, allocations: 4.059 MB / 484.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.152e-05/0.4487, allocations: 2.656 kB / 484.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003618/0.449, allocations: 126.5 kB / 484.5 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.4492, allocations: 151.6 kB / 484.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007146/0.4563, allocations: 3.389 MB / 488 MB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03211/0.4884, allocations: 13.38 MB / 0.4896 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007032/0.4955, allocations: 4.167 MB / 0.4937 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002694/0.4982, allocations: 0.9299 MB / 0.4946 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008394/0.5065, allocations: 2.865 MB / 0.4974 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/0.5066, allocations: 51.5 kB / 0.4974 GB, free: 3.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.356e-06/0.5066, allocations: 0 / 0.4974 GB, free: 3.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01796/0.5246, allocations: 6.042 MB / 0.5033 GB, free: 13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/0.5246, allocations: 64.72 kB / 0.5034 GB, free: 12.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.5279, allocations: 1.917 MB / 0.5053 GB, free: 10.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002242/0.5281, allocations: 45.7 kB / 0.5053 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.5295, allocations: 1.56 MB / 0.5069 GB, free: 9.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000543/0.53, allocations: 0.4997 MB / 0.5073 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005887/0.5306, allocations: 331.4 kB / 0.5077 GB, free: 8.516 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.5308, allocations: 309.1 kB / 0.5079 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.5321, allocations: 0.7663 MB / 0.5087 GB, free: 7.445 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.534, allocations: 1.384 MB / 0.51 GB, free: 5.797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003313/0.5373, allocations: 2.319 MB / 0.5123 GB, free: 3.219 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.5373, allocations: 4 kB / 0.5123 GB, free: 3.215 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004631/0.5419, allocations: 2.488 MB / 0.5147 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.542, allocations: 16.12 kB / 0.5148 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.591e-05/0.542, allocations: 20 kB / 0.5148 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004078/0.5424, allocations: 126.5 kB / 0.5149 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/0.5443, allocations: 487.1 kB / 0.5154 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.5458, allocations: 1.407 MB / 0.5167 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.5479, allocations: 123.7 kB / 0.5169 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/0.5482, allocations: 87.98 kB / 0.5169 GB, free: 14.32 MB / 430.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.002537/0.5507, allocations: 0.989 MB / 0.5179 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007521/0.5515, allocations: 210.6 kB / 0.5181 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004132/0.5556, allocations: 1.962 MB / 0.52 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/0.5556, allocations: 16 kB / 0.52 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.5556, allocations: 0 / 0.52 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5556, allocations: 7.969 kB / 0.52 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.5673, allocations: 5 MB / 0.5249 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.5673, allocations: 3.938 kB / 0.5249 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.5688, allocations: 315.5 kB / 0.5252 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003307/0.5692, allocations: 90.62 kB / 0.5253 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.5693, allocations: 35.98 kB / 0.5254 GB, free: 5.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.5705, allocations: 1.375 MB / 0.5267 GB, free: 4.074 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.5705, allocations: 3.938 kB / 0.5267 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005615/0.5761, allocations: 3.094 MB / 0.5297 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/0.5777, allocations: 471.6 kB / 0.5302 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006779/0.5784, allocations: 24 kB / 0.5302 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/0.5798, allocations: 83.97 kB / 0.5303 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.58, allocations: 89.12 kB / 0.5304 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-05/0.5801, allocations: 39.98 kB / 0.5304 GB, free: 216 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002862/0.583, allocations: 1.294 MB / 0.5317 GB, free: 14.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.583, allocations: 0 / 0.5317 GB, free: 14.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002489/0.5855, allocations: 0.5429 MB / 0.5322 GB, free: 14.35 MB / 446.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.00599/0.5914, allocations: 3.714 MB / 0.5358 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004013/0.5955, allocations: 2.121 MB / 0.5379 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.5955, allocations: 0 / 0.5379 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/0.5973, allocations: 1.109 MB / 0.539 GB, free: 7.238 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/0.6007, allocations: 0.5285 MB / 0.5395 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04301/0.6437, allocations: 20.09 MB / 0.5591 GB, free: 1.871 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/0.6472, allocations: 2.268 MB / 0.5613 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002279/0.6495, allocations: 0.5133 MB / 0.5618 GB, free: 15.05 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002199/0.6517, allocations: 1.183 MB / 0.563 GB, free: 13.87 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6517, allocations: 0 / 0.563 GB, free: 13.87 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1229/0.7746, allocations: 50.4 MB / 0.6122 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.93, allocations: 17.16 kB / 0.6122 GB, free: 11.81 MB / 0.5137 GB " [Timeout remaining time 645] (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 --stepSize=0.0001 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 23.102272010874003]