Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 110.5 kB / 16.92 MB, free: 5.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 191.3 kB / 17.85 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 47.48 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09355/0.09478, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.015/0.1098, allocations: 15.16 MB / 365.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1896/0.2994, allocations: 5.096 MB / 370.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.3027, allocations: 99.47 kB / 370.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004715/0.3075, allocations: 1.055 MB / 371.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004557/0.3121, allocations: 1.269 MB / 372.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002698/0.3148, allocations: 0.8895 MB / 373.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005531/0.3204, allocations: 3.588 MB / 377.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00419/0.3246, allocations: 3.314 MB / 380.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.3276, allocations: 1.716 MB / 382.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.3312, allocations: 2.048 MB / 384.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.3325, allocations: 480.4 kB / 384.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.3345, allocations: 0.6938 MB / 385.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.3356, allocations: 1.139 MB / 386.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002695/0.3383, allocations: 2.044 MB / 388.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00507/0.3434, allocations: 6.205 MB / 395 MB, free: 1.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3434, allocations: 0 / 395 MB, free: 1.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3434, allocations: 0 / 395 MB, free: 1.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001292/0.3435, allocations: 1.375 kB / 395 MB, free: 1.656 MB / 302.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.009005/0.3526, allocations: 4.251 MB / 399.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3526, allocations: 12.95 kB / 399.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004832/0.3531, allocations: 448.8 kB / 399.7 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002416/0.3555, allocations: 0.6242 MB / 400.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003016/0.3585, allocations: 2.216 MB / 402.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.3587, allocations: 239 kB / 402.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/0.3591, allocations: 314.2 kB / 403.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006104/0.3652, allocations: 4.049 MB / 407.1 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.756e-05/0.3653, allocations: 3.938 kB / 407.1 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002773/0.3656, allocations: 130.8 kB / 407.2 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001439/0.3657, allocations: 146.2 kB / 407.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005506/0.3713, allocations: 3.393 MB / 410.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02042/0.3917, allocations: 13.3 MB / 424.1 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004107/0.3959, allocations: 3.962 MB / 428 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.3974, allocations: 1.002 MB / 429 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004722/0.4021, allocations: 2.662 MB / 431.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.4022, allocations: 43.56 kB / 431.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.456e-06/0.4022, allocations: 0 / 431.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01139/0.4136, allocations: 5.983 MB / 437.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.4137, allocations: 68.66 kB / 437.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002992/0.4167, allocations: 1.897 MB / 439.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.695e-05/0.4168, allocations: 45.7 kB / 439.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000961/0.4177, allocations: 1.498 MB / 441.2 MB, free: 4.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003494/0.4181, allocations: 492.3 kB / 441.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004738/0.4186, allocations: 335.2 kB / 442 MB, free: 3.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.4187, allocations: 305.1 kB / 442.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.4199, allocations: 0.7691 MB / 443.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.4214, allocations: 1.38 MB / 444.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00292/0.4244, allocations: 2.313 MB / 446.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.4244, allocations: 8 kB / 446.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.0044/0.4288, allocations: 2.475 MB / 449.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.4289, allocations: 15.98 kB / 449.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/0.4289, allocations: 24.03 kB / 449.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003602/0.4293, allocations: 118.5 kB / 449.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.431, allocations: 487.2 kB / 449.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.4321, allocations: 1.406 MB / 451.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.4339, allocations: 111.8 kB / 451.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002011/0.4341, allocations: 83.98 kB / 451.5 MB, free: 9.484 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.002064/0.4361, allocations: 0.9813 MB / 452.5 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004509/0.4366, allocations: 205.5 kB / 452.7 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003292/0.4399, allocations: 1.969 MB / 454.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.4399, allocations: 12 kB / 454.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4399, allocations: 4 kB / 454.7 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.44, allocations: 3.984 kB / 454.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008004/0.448, allocations: 4.995 MB / 459.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.448, allocations: 0 / 459.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.4493, allocations: 307.8 kB / 460 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003014/0.4496, allocations: 98.52 kB / 460.1 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-05/0.4497, allocations: 27.98 kB / 460.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009708/0.4507, allocations: 1.371 MB / 461.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4507, allocations: 8 kB / 461.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00469/0.4554, allocations: 3.077 MB / 464.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.4567, allocations: 462.4 kB / 465 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/0.4573, allocations: 31.98 kB / 465 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.4585, allocations: 79.97 kB / 465.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.4587, allocations: 97.06 kB / 465.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.627e-05/0.4588, allocations: 39.98 kB / 465.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002551/0.4614, allocations: 1.281 MB / 466.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4614, allocations: 4 kB / 466.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002233/0.4636, allocations: 0.5312 MB / 467.1 MB, free: 9.574 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.005104/0.4688, allocations: 3.697 MB / 470.8 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005662/0.4744, allocations: 2.838 MB / 473.6 MB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.4745, allocations: 0 / 473.6 MB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.4762, allocations: 1.174 MB / 474.8 MB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/0.4793, allocations: 0.5121 MB / 475.3 MB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04003/0.5194, allocations: 22.36 MB / 497.6 MB, free: 8.887 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003988/0.5234, allocations: 2.259 MB / 499.9 MB, free: 6.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002309/0.5258, allocations: 0.5092 MB / 0.4887 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/0.5279, allocations: 1.183 MB / 0.4898 GB, free: 4.906 MB / 414.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5279, allocations: 0 / 0.4898 GB, free: 4.906 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2907/0.8187, allocations: 48.51 MB / 0.5372 GB, free: 154.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.83, allocations: 6.984 kB / 0.5372 GB, free: 154.2 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches