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.001849/0.001849, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.00269/0.00269, allocations: 210.9 kB / 24.51 MB, free: 3.941 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.52/1.52, allocations: 230.5 MB / 258.2 MB, free: 7.809 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 63.91 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2636, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01743/0.281, allocations: 13.78 MB / 445.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.2919, allocations: 5.066 MB / 450.8 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003145/0.295, allocations: 123.2 kB / 450.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003622/0.2987, allocations: 1.068 MB / 452 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004721/0.3034, allocations: 1.274 MB / 453.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.3058, allocations: 0.9001 MB / 454.1 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0057/0.3115, allocations: 3.65 MB / 457.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003036/0.3145, allocations: 1.913 MB / 459.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003043/0.3176, allocations: 1.791 MB / 461.5 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003828/0.3214, allocations: 2.156 MB / 463.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008089/0.3222, allocations: 480 kB / 464.1 MB, free: 6.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.3239, allocations: 0.6989 MB / 464.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.3251, allocations: 1.157 MB / 466 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.3274, allocations: 1.626 MB / 467.6 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007755/0.3351, allocations: 6.345 MB / 473.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.3352, allocations: 7.984 kB / 474 MB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3352, allocations: 0 / 474 MB, free: 12.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001605/0.3353, allocations: 8 kB / 474 MB, free: 12.21 MB / 382.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.01077/0.3461, allocations: 4.291 MB / 478.3 MB, free: 7.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3461, allocations: 8.031 kB / 478.3 MB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.433e-05/0.3462, allocations: 82.48 kB / 478.3 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006148/0.3468, allocations: 451.3 kB / 478.8 MB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002905/0.3498, allocations: 0.631 MB / 479.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004591/0.3543, allocations: 2.233 MB / 481.6 MB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.3546, allocations: 242.4 kB / 481.9 MB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005453/0.3551, allocations: 312 kB / 482.2 MB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007552/0.3627, allocations: 4.118 MB / 486.3 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.742e-05/0.3627, allocations: 15.94 kB / 486.3 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002871/0.363, allocations: 128 kB / 486.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001583/0.3632, allocations: 150.2 kB / 486.6 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006112/0.3693, allocations: 3.39 MB / 490 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0202/0.3895, allocations: 11.79 MB / 0.49 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003496/0.393, allocations: 1.748 MB / 0.4917 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.3946, allocations: 0.926 MB / 0.4926 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004692/0.3993, allocations: 2.185 MB / 0.4948 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.3993, allocations: 47.56 kB / 0.4948 GB, free: 10.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.755e-06/0.3993, allocations: 0 / 0.4948 GB, free: 10.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01176/0.4111, allocations: 5.814 MB / 0.5005 GB, free: 5.031 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.4111, allocations: 72.66 kB / 0.5005 GB, free: 4.949 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002916/0.4141, allocations: 1.906 MB / 0.5024 GB, free: 3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.4142, allocations: 53.7 kB / 0.5025 GB, free: 2.941 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0012/0.4154, allocations: 1.556 MB / 0.504 GB, free: 1.371 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004577/0.4158, allocations: 0.5035 MB / 0.5045 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005516/0.4164, allocations: 339.4 kB / 0.5048 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4165, allocations: 309.1 kB / 0.5051 GB, free: 224 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4177, allocations: 0.7691 MB / 0.5058 GB, free: 15.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001729/0.4195, allocations: 1.4 MB / 0.5072 GB, free: 13.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/0.4227, allocations: 2.316 MB / 0.5095 GB, free: 11.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.4227, allocations: 8 kB / 0.5095 GB, free: 11.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004193/0.4269, allocations: 2.483 MB / 0.5119 GB, free: 8.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.4269, allocations: 16 kB / 0.5119 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/0.427, allocations: 28 kB / 0.5119 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003707/0.4274, allocations: 118.5 kB / 0.5121 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.4291, allocations: 483.2 kB / 0.5125 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.4303, allocations: 1.302 MB / 0.5138 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.4318, allocations: 119.8 kB / 0.5139 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4319, allocations: 83.98 kB / 0.514 GB, free: 6.422 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.001744/0.4336, allocations: 0.993 MB / 0.515 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003775/0.434, allocations: 214.6 kB / 0.5152 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.4374, allocations: 1.969 MB / 0.5171 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.4374, allocations: 12 kB / 0.5171 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4374, allocations: 0 / 0.5171 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4374, allocations: 7.969 kB / 0.5171 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00763/0.4451, allocations: 4.659 MB / 0.5217 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.4451, allocations: 0 / 0.5217 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.4464, allocations: 311.5 kB / 0.5219 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002975/0.4467, allocations: 98.78 kB / 0.522 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.398e-05/0.4468, allocations: 27.98 kB / 0.5221 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009942/0.4478, allocations: 1.267 MB / 0.5233 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4478, allocations: 4 kB / 0.5233 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004662/0.4524, allocations: 3.099 MB / 0.5263 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009605/0.4534, allocations: 394.4 kB / 0.5267 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.4537, allocations: 28 kB / 0.5267 GB, free: 9.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009322/0.4546, allocations: 79.91 kB / 0.5268 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.4548, allocations: 97.06 kB / 0.5269 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.4549, allocations: 36 kB / 0.5269 GB, free: 8.836 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.4569, allocations: 1.297 MB / 0.5282 GB, free: 7.516 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4569, allocations: 0 / 0.5282 GB, free: 7.516 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00172/0.4586, allocations: 0.5391 MB / 0.5287 GB, free: 6.977 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.005168/0.4638, allocations: 3.726 MB / 0.5324 GB, free: 3.191 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003577/0.4673, allocations: 1.972 MB / 0.5343 GB, free: 1.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4673, allocations: 4 kB / 0.5343 GB, free: 1.199 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.4689, allocations: 0.9486 MB / 0.5352 GB, free: 240 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2373/0.7062, allocations: 0.5163 MB / 0.5357 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03131/0.7375, allocations: 20.1 MB / 0.5554 GB, free: 91.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/0.739, allocations: 1.722 MB / 0.557 GB, free: 90.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.7405, allocations: 0.5133 MB / 0.5575 GB, free: 89.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.7417, allocations: 1.183 MB / 0.5587 GB, free: 88.44 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.7417, allocations: 4 kB / 0.5587 GB, free: 88.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08344/0.8251, allocations: 53.34 MB / 0.6108 GB, free: 35.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/16.59, allocations: 12 kB / 0.6108 GB, free: 35.58 MB / 446.1 MB " [Timeout remaining time 643] (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/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/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 26.768445285968482]