Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 212.6 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_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_4_1_0_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.002037/0.002037, allocations: 43.94 kB / 378.5 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2655, allocations: 53.36 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01739/0.2828, allocations: 13.77 MB / 445.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01061/0.2935, allocations: 5.057 MB / 450.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002879/0.2963, allocations: 127.2 kB / 450.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003148/0.2995, allocations: 1.075 MB / 451.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00417/0.3037, allocations: 1.27 MB / 453.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002118/0.3058, allocations: 0.9111 MB / 454.1 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004744/0.3105, allocations: 3.647 MB / 457.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002637/0.3132, allocations: 1.913 MB / 459.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.3158, allocations: 1.787 MB / 461.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003272/0.3191, allocations: 2.156 MB / 463.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007304/0.3198, allocations: 480 kB / 464.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.3213, allocations: 0.6951 MB / 464.8 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.3224, allocations: 1.165 MB / 465.9 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002102/0.3245, allocations: 1.626 MB / 467.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007263/0.3318, allocations: 6.346 MB / 473.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3318, allocations: 3.844 kB / 473.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3318, allocations: 0 / 473.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001212/0.3319, allocations: 0 / 473.9 MB, free: 12.41 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.01014/0.3421, allocations: 4.283 MB / 478.2 MB, free: 8.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.3421, allocations: 15.97 kB / 478.2 MB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.642e-05/0.3422, allocations: 82.48 kB / 478.3 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005837/0.3428, allocations: 455.2 kB / 478.7 MB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002815/0.3456, allocations: 0.6271 MB / 479.4 MB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004216/0.3498, allocations: 2.23 MB / 481.6 MB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.35, allocations: 242.4 kB / 481.8 MB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005019/0.3505, allocations: 315.9 kB / 482.1 MB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006946/0.3575, allocations: 4.126 MB / 486.3 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-05/0.3576, allocations: 7.953 kB / 486.3 MB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002998/0.3579, allocations: 131.9 kB / 486.4 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.358, allocations: 146.2 kB / 486.5 MB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.3639, allocations: 3.39 MB / 489.9 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01896/0.3828, allocations: 11.79 MB / 0.49 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003412/0.3862, allocations: 1.749 MB / 0.4917 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.3878, allocations: 0.9337 MB / 0.4926 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004259/0.3921, allocations: 2.178 MB / 0.4947 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.3921, allocations: 47.55 kB / 0.4947 GB, free: 11.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.885e-06/0.3921, allocations: 0 / 0.4947 GB, free: 11.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01255/0.4047, allocations: 5.818 MB / 0.5004 GB, free: 5.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.4047, allocations: 64.72 kB / 0.5005 GB, free: 5.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003199/0.4079, allocations: 1.913 MB / 0.5024 GB, free: 3.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.4081, allocations: 49.64 kB / 0.5024 GB, free: 3.145 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.4095, allocations: 1.556 MB / 0.5039 GB, free: 1.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004943/0.41, allocations: 0.5113 MB / 0.5044 GB, free: 1.059 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005395/0.4105, allocations: 331.4 kB / 0.5047 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4106, allocations: 313 kB / 0.505 GB, free: 428 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.4119, allocations: 0.7691 MB / 0.5058 GB, free: 15.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.4137, allocations: 1.4 MB / 0.5072 GB, free: 13.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.4168, allocations: 2.32 MB / 0.5094 GB, free: 11.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.4168, allocations: 8 kB / 0.5094 GB, free: 11.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004219/0.421, allocations: 2.486 MB / 0.5119 GB, free: 8.871 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.421, allocations: 12 kB / 0.5119 GB, free: 8.859 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/0.4211, allocations: 27.88 kB / 0.5119 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000401/0.4215, allocations: 122.5 kB / 0.512 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.4232, allocations: 483.6 kB / 0.5125 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.4245, allocations: 1.291 MB / 0.5137 GB, free: 6.824 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.4259, allocations: 120 kB / 0.5138 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.426, allocations: 87.92 kB / 0.5139 GB, free: 6.621 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.001819/0.4279, allocations: 0.9889 MB / 0.5149 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/0.4282, allocations: 210.6 kB / 0.5151 GB, free: 5.414 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003312/0.4315, allocations: 1.969 MB / 0.517 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/0.4316, allocations: 12 kB / 0.517 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4316, allocations: 4 kB / 0.517 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.4316, allocations: 11.97 kB / 0.517 GB, free: 3.398 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007556/0.4391, allocations: 4.647 MB / 0.5216 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.4391, allocations: 8.188 kB / 0.5216 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.4405, allocations: 311.5 kB / 0.5219 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002917/0.4408, allocations: 94.52 kB / 0.522 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.4409, allocations: 28 kB / 0.522 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.4419, allocations: 1.279 MB / 0.5233 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4419, allocations: 4 kB / 0.5233 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/0.4464, allocations: 3.095 MB / 0.5263 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/0.4472, allocations: 394.4 kB / 0.5267 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/0.4474, allocations: 20 kB / 0.5267 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009123/0.4483, allocations: 88.08 kB / 0.5268 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.4485, allocations: 101 kB / 0.5269 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.96e-05/0.4486, allocations: 39.98 kB / 0.5269 GB, free: 9.027 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001861/0.4505, allocations: 1.294 MB / 0.5282 GB, free: 7.711 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4505, allocations: 0 / 0.5282 GB, free: 7.711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001588/0.452, allocations: 0.5312 MB / 0.5287 GB, free: 7.18 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.004971/0.457, allocations: 3.729 MB / 0.5323 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00335/0.4604, allocations: 1.968 MB / 0.5342 GB, free: 1.406 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.4604, allocations: 0 / 0.5342 GB, free: 1.406 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.4619, allocations: 0.9574 MB / 0.5352 GB, free: 440 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1759/0.6378, allocations: 0.5228 MB / 0.5357 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/0.6613, allocations: 20.1 MB / 0.5553 GB, free: 91.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.6626, allocations: 1.716 MB / 0.557 GB, free: 90.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.6638, allocations: 0.5161 MB / 0.5575 GB, free: 89.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/0.6649, allocations: 1.179 MB / 0.5587 GB, free: 88.52 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6649, allocations: 0 / 0.5587 GB, free: 88.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07541/0.7403, allocations: 53.37 MB / 0.6108 GB, free: 35.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.78, allocations: 7.859 kB / 0.6108 GB, free: 35.79 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 25.484579805051908]