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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 117.8 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 43.94 kB / 366.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01784/0.1213, allocations: 15.25 MB / 433.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009939/0.1313, allocations: 5.119 MB / 438.9 MB, free: 8.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002691/0.134, allocations: 119.3 kB / 439 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002909/0.1369, allocations: 1.13 MB / 440.1 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.1405, allocations: 1.313 MB / 441.4 MB, free: 5.555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.1426, allocations: 0.8807 MB / 442.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004674/0.1473, allocations: 3.624 MB / 445.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2106/0.3579, allocations: 2.357 MB / 448.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002626/0.3605, allocations: 1.769 MB / 450.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.3636, allocations: 2.074 MB / 452.1 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001154/0.3648, allocations: 480 kB / 452.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.3668, allocations: 0.6942 MB / 453.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.3678, allocations: 1.155 MB / 454.5 MB, free: 8.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002471/0.3703, allocations: 2.036 MB / 456.5 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008165/0.3785, allocations: 6.294 MB / 462.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3785, allocations: 0 / 462.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3785, allocations: 2.859 kB / 462.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002054/0.3787, allocations: 0 / 462.8 MB, free: 6.844 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.01295/0.3916, allocations: 4.335 MB / 467.1 MB, free: 5.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.3917, allocations: 13.14 kB / 467.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001253/0.3918, allocations: 91.23 kB / 467.2 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009067/0.3927, allocations: 448.7 kB / 467.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/0.3958, allocations: 0.6356 MB / 468.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004927/0.4007, allocations: 2.282 MB / 470.6 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.4009, allocations: 241.6 kB / 470.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001121/0.402, allocations: 319 kB / 471.1 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009093/0.4111, allocations: 4.04 MB / 475.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.74e-05/0.4112, allocations: 11 kB / 475.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003304/0.4116, allocations: 135.6 kB / 475.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.4117, allocations: 144.4 kB / 475.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006632/0.4184, allocations: 3.39 MB / 478.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02276/0.4411, allocations: 13.18 MB / 492 MB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004244/0.4454, allocations: 3.861 MB / 495.9 MB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.4469, allocations: 0.8982 MB / 496.8 MB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005262/0.4522, allocations: 2.66 MB / 499.4 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.4522, allocations: 43.56 kB / 499.5 MB, free: 14.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 2.795e-06/0.4522, allocations: 3.938 kB / 499.5 MB, free: 14.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01224/0.4644, allocations: 6.03 MB / 0.4937 GB, free: 8.461 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.4645, allocations: 68.72 kB / 0.4937 GB, free: 8.383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.4675, allocations: 1.897 MB / 0.4956 GB, free: 6.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.4676, allocations: 45.7 kB / 0.4956 GB, free: 6.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.4687, allocations: 1.543 MB / 0.4971 GB, free: 4.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004331/0.4691, allocations: 0.5015 MB / 0.4976 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005314/0.4697, allocations: 331.4 kB / 0.4979 GB, free: 4.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4698, allocations: 305.1 kB / 0.4982 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.471, allocations: 0.7708 MB / 0.499 GB, free: 2.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.4727, allocations: 1.381 MB / 0.5003 GB, free: 1.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.4759, allocations: 2.313 MB / 0.5026 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4759, allocations: 4 kB / 0.5026 GB, free: 14.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004207/0.4801, allocations: 2.481 MB / 0.505 GB, free: 12.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.4801, allocations: 16 kB / 0.505 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/0.4802, allocations: 16 kB / 0.5051 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003701/0.4805, allocations: 126.5 kB / 0.5052 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4823, allocations: 486.5 kB / 0.5056 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.4834, allocations: 1.418 MB / 0.507 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.485, allocations: 108.7 kB / 0.5071 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.4852, allocations: 83.98 kB / 0.5072 GB, free: 10.08 MB / 414.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.001917/0.4871, allocations: 0.9866 MB / 0.5082 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003822/0.4875, allocations: 210.6 kB / 0.5084 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.4909, allocations: 1.965 MB / 0.5103 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.491, allocations: 15.98 kB / 0.5103 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.491, allocations: 5.125 kB / 0.5103 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.491, allocations: 3.984 kB / 0.5103 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00826/0.4992, allocations: 4.986 MB / 0.5152 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.4992, allocations: 4 kB / 0.5152 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.5006, allocations: 301.3 kB / 0.5155 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/0.5009, allocations: 102.4 kB / 0.5156 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.501, allocations: 31.98 kB / 0.5156 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.5021, allocations: 1.377 MB / 0.5169 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5021, allocations: 4 kB / 0.5169 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004778/0.5069, allocations: 3.086 MB / 0.52 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.5079, allocations: 467.5 kB / 0.5204 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/0.5082, allocations: 32.06 kB / 0.5204 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.5092, allocations: 83.19 kB / 0.5205 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.5094, allocations: 92.41 kB / 0.5206 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.095e-05/0.5095, allocations: 47.98 kB / 0.5207 GB, free: 12.08 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.5117, allocations: 1.281 MB / 0.5219 GB, free: 10.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5117, allocations: 7.938 kB / 0.5219 GB, free: 10.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001822/0.5135, allocations: 0.5351 MB / 0.5224 GB, free: 10.23 MB / 430.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.005192/0.5187, allocations: 3.704 MB / 0.5261 GB, free: 6.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.5223, allocations: 2.128 MB / 0.5281 GB, free: 4.379 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5223, allocations: 0 / 0.5281 GB, free: 4.379 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.5239, allocations: 1.102 MB / 0.5292 GB, free: 3.254 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.5264, allocations: 0.511 MB / 0.5297 GB, free: 2.754 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03156/0.558, allocations: 20.07 MB / 0.5493 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/0.5603, allocations: 2.259 MB / 0.5515 GB, free: 11.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001568/0.5619, allocations: 0.5113 MB / 0.552 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/0.5635, allocations: 1.183 MB / 0.5532 GB, free: 10.03 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5635, allocations: 0 / 0.5532 GB, free: 10.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09425/0.6577, allocations: 50.17 MB / 0.6022 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.15, allocations: 11.91 kB / 0.6022 GB, free: 8.379 MB / 0.4981 GB " [Timeout remaining time 646] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 22.953650893003214]