Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001796/0.001796, allocations: 115.6 kB / 18.45 MB, free: 4.566 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.002269/0.002269, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 207.6 MB / 231.8 MB, free: 4.191 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 55.91 kB / 342.3 MB, free: 9.984 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.134, allocations: 49.13 MB / 391.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02033/0.1543, allocations: 15.18 MB / 406.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.1665, allocations: 5.128 MB / 411.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003417/0.17, allocations: 111.2 kB / 411.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003461/0.1734, allocations: 1.122 MB / 413 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.1778, allocations: 1.262 MB / 414.2 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.1803, allocations: 0.9196 MB / 415.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005309/0.1856, allocations: 3.631 MB / 418.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00342/0.1891, allocations: 2.325 MB / 421.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.1917, allocations: 1.764 MB / 422.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00315/0.1948, allocations: 2.074 MB / 425 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007588/0.1956, allocations: 480 kB / 425.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.197, allocations: 0.6911 MB / 426.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.1981, allocations: 1.145 MB / 427.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002597/0.2007, allocations: 2.042 MB / 429.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00821/0.2089, allocations: 6.26 MB / 435.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.209, allocations: 4 kB / 435.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.209, allocations: 3.938 kB / 435.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001812/0.2091, allocations: 0 / 435.6 MB, free: 12.31 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.01155/0.2207, allocations: 4.327 MB / 439.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.2207, allocations: 12.03 kB / 439.9 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006654/0.2214, allocations: 451.3 kB / 440.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002866/0.2243, allocations: 0.6349 MB / 441 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/0.2286, allocations: 2.145 MB / 443.1 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002385/0.2289, allocations: 246.6 kB / 443.4 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006725/0.2295, allocations: 311.9 kB / 443.7 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007588/0.2371, allocations: 4.039 MB / 447.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.051e-05/0.2372, allocations: 7.984 kB / 447.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.2375, allocations: 132 kB / 447.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/0.2377, allocations: 146.2 kB / 448 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006746/0.2444, allocations: 3.374 MB / 451.4 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1954/0.4398, allocations: 13.2 MB / 464.6 MB, free: 57.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004197/0.444, allocations: 3.863 MB / 468.4 MB, free: 54.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.4459, allocations: 0.901 MB / 469.3 MB, free: 54.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005153/0.451, allocations: 2.658 MB / 472 MB, free: 54.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.4511, allocations: 44.78 kB / 472 MB, free: 54.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.096e-06/0.4511, allocations: 1.188 kB / 472 MB, free: 54.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01181/0.4629, allocations: 6.041 MB / 478.1 MB, free: 51.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.4629, allocations: 67.75 kB / 478.1 MB, free: 51.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002431/0.4654, allocations: 1.896 MB / 480 MB, free: 51.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.089e-05/0.4654, allocations: 49.61 kB / 480.1 MB, free: 51.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007246/0.4662, allocations: 1.545 MB / 481.6 MB, free: 50.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.4665, allocations: 0.506 MB / 482.1 MB, free: 49.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004488/0.467, allocations: 337.5 kB / 482.5 MB, free: 49.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.467, allocations: 301.8 kB / 482.8 MB, free: 49.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.4681, allocations: 0.7681 MB / 483.5 MB, free: 48.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.4695, allocations: 1.38 MB / 484.9 MB, free: 47.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/0.4717, allocations: 2.318 MB / 487.2 MB, free: 46.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.4717, allocations: 7.875 kB / 487.2 MB, free: 46.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003189/0.4749, allocations: 2.477 MB / 489.7 MB, free: 45.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.475, allocations: 19.97 kB / 489.7 MB, free: 45.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.475, allocations: 23.41 kB / 489.8 MB, free: 45.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003281/0.4753, allocations: 116.3 kB / 489.9 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/0.477, allocations: 493 kB / 490.4 MB, free: 45.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007872/0.4778, allocations: 1.405 MB / 491.8 MB, free: 43.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4792, allocations: 120.5 kB / 491.9 MB, free: 43.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4793, allocations: 82.66 kB / 492 MB, free: 43.75 MB / 382.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.001381/0.4807, allocations: 0.9845 MB / 492.9 MB, free: 43.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.4809, allocations: 210.4 kB / 493.1 MB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002755/0.4837, allocations: 1.965 MB / 495.1 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.4837, allocations: 18.86 kB / 495.1 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4837, allocations: 0 / 495.1 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-05/0.4837, allocations: 3.984 kB / 495.1 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006478/0.4902, allocations: 4.984 MB / 0.4884 GB, free: 37.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4902, allocations: 256 / 0.4884 GB, free: 37.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.4915, allocations: 323.5 kB / 0.4887 GB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002814/0.4917, allocations: 98.27 kB / 0.4888 GB, free: 37.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.538e-05/0.4918, allocations: 28 kB / 0.4888 GB, free: 37.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006391/0.4925, allocations: 1.379 MB / 0.4902 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4925, allocations: 4 kB / 0.4902 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003557/0.496, allocations: 3.091 MB / 0.4932 GB, free: 32.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008222/0.4968, allocations: 459.6 kB / 0.4936 GB, free: 32.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.4971, allocations: 35.42 kB / 0.4937 GB, free: 31.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009169/0.498, allocations: 83.97 kB / 0.4937 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.4981, allocations: 92.19 kB / 0.4938 GB, free: 31.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.077e-05/0.4982, allocations: 36 kB / 0.4939 GB, free: 31.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001631/0.4998, allocations: 1.289 MB / 0.4951 GB, free: 30.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4998, allocations: 0 / 0.4951 GB, free: 30.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001704/0.5015, allocations: 0.5312 MB / 0.4956 GB, free: 29.93 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.003728/0.5053, allocations: 3.711 MB / 0.4993 GB, free: 26.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.5079, allocations: 2.123 MB / 0.5013 GB, free: 23.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5079, allocations: 0 / 0.5013 GB, free: 23.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.5091, allocations: 1.103 MB / 0.5024 GB, free: 22.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.5113, allocations: 0.5224 MB / 0.5029 GB, free: 22.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/0.5355, allocations: 20.05 MB / 0.5225 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/0.5373, allocations: 2.259 MB / 0.5247 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001629/0.5389, allocations: 0.5131 MB / 0.5252 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/0.5406, allocations: 1.183 MB / 0.5264 GB, free: 13.51 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5406, allocations: 0 / 0.5264 GB, free: 13.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1112/0.6518, allocations: 50.06 MB / 0.5753 GB, free: 11.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.85, allocations: 11.8 kB / 0.5753 GB, free: 11.3 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.w in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.77076622399909]