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.001939/0.001939, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001645/0.001645, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.413/1.413, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.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.001893/0.001893, allocations: 55.92 kB / 347.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2354, allocations: 49.15 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01318/0.2485, allocations: 13.2 MB / 409.6 MB, free: 188 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.2592, allocations: 4.86 MB / 414.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002661/0.2619, allocations: 108.3 kB / 414.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002897/0.2648, allocations: 1.058 MB / 415.6 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.2689, allocations: 1.248 MB / 416.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002304/0.2712, allocations: 0.9048 MB / 417.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004585/0.2758, allocations: 3.627 MB / 421.4 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002715/0.2785, allocations: 1.798 MB / 423.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.2812, allocations: 1.771 MB / 424.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003342/0.2845, allocations: 1.938 MB / 426.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000743/0.2853, allocations: 476 kB / 427.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.2868, allocations: 0.6678 MB / 428 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.288, allocations: 1.145 MB / 429.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002332/0.2903, allocations: 1.622 MB / 430.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007814/0.2982, allocations: 6.291 MB / 437.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2982, allocations: 0 / 437.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2982, allocations: 4 kB / 437.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001644/0.2983, allocations: 0 / 437.1 MB, free: 10.23 MB / 350.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.01098/0.3093, allocations: 4.248 MB / 441.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3094, allocations: 15.92 kB / 441.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006482/0.31, allocations: 443.3 kB / 441.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002785/0.3128, allocations: 0.6349 MB / 442.4 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005037/0.3178, allocations: 2.054 MB / 444.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.3181, allocations: 234.7 kB / 444.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006517/0.3187, allocations: 327.8 kB / 445 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007758/0.3265, allocations: 4.11 MB / 449.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.042e-05/0.3266, allocations: 4 kB / 449.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.3269, allocations: 128 kB / 449.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.327, allocations: 150.2 kB / 449.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006391/0.3334, allocations: 3.366 MB / 452.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/0.3543, allocations: 11.76 MB / 464.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/0.3577, allocations: 1.681 MB / 466.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.3593, allocations: 0.8948 MB / 467.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004512/0.3638, allocations: 2.123 MB / 469.2 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.3639, allocations: 47.5 kB / 469.3 MB, free: 9.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 5.42e-06/0.3639, allocations: 4 kB / 469.3 MB, free: 9.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01211/0.376, allocations: 5.824 MB / 475.1 MB, free: 3.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.376, allocations: 68.72 kB / 475.2 MB, free: 3.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002964/0.379, allocations: 1.924 MB / 477.1 MB, free: 1.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.3791, allocations: 45.7 kB / 477.1 MB, free: 1.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.3804, allocations: 1.548 MB / 478.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004671/0.3809, allocations: 0.5036 MB / 479.2 MB, free: 15.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005496/0.3814, allocations: 331.4 kB / 479.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3816, allocations: 304.9 kB / 479.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.3829, allocations: 0.773 MB / 480.6 MB, free: 13.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.3848, allocations: 1.404 MB / 482 MB, free: 12.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003411/0.3882, allocations: 2.304 MB / 484.3 MB, free: 9.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.3882, allocations: 8 kB / 484.3 MB, free: 9.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00447/0.3927, allocations: 2.486 MB / 486.8 MB, free: 7.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.3927, allocations: 15.94 kB / 486.8 MB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.018e-05/0.3927, allocations: 24 kB / 486.8 MB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003776/0.3931, allocations: 119.1 kB / 486.9 MB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001925/0.395, allocations: 495.2 kB / 487.4 MB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.3963, allocations: 1.299 MB / 488.7 MB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.3978, allocations: 115.8 kB / 488.8 MB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.398, allocations: 80 kB / 488.9 MB, free: 4.953 MB / 398.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.001742/0.3997, allocations: 0.9889 MB / 489.9 MB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003965/0.4001, allocations: 210.6 kB / 490.1 MB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.4037, allocations: 1.961 MB / 492.1 MB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.4037, allocations: 19.94 kB / 492.1 MB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4037, allocations: 0 / 492.1 MB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.4037, allocations: 11.91 kB / 492.1 MB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008369/0.4121, allocations: 4.647 MB / 496.7 MB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.4121, allocations: 4 kB / 496.7 MB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/0.4135, allocations: 315.8 kB / 497 MB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/0.4139, allocations: 98.45 kB / 497.1 MB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.912e-05/0.4139, allocations: 31.98 kB / 497.2 MB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.4151, allocations: 1.271 MB / 498.4 MB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4151, allocations: 3.984 kB / 498.4 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004945/0.42, allocations: 3.091 MB / 0.4898 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.4212, allocations: 382.5 kB / 0.4901 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.4215, allocations: 28 kB / 0.4902 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.4226, allocations: 80.09 kB / 0.4903 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.4228, allocations: 101 kB / 0.4903 GB, free: 7.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.458e-05/0.4229, allocations: 36 kB / 0.4904 GB, free: 7.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002141/0.425, allocations: 1.289 MB / 0.4916 GB, free: 6.066 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.425, allocations: 0 / 0.4916 GB, free: 6.066 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001768/0.4268, allocations: 0.5234 MB / 0.4922 GB, free: 5.543 MB / 414.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.005759/0.4326, allocations: 3.711 MB / 0.4958 GB, free: 1.773 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00382/0.4364, allocations: 1.968 MB / 0.4977 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.4364, allocations: 4 kB / 0.4977 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.438, allocations: 0.9647 MB / 0.4986 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.4408, allocations: 0.5175 MB / 0.4991 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03452/0.4753, allocations: 20.08 MB / 0.5188 GB, free: 9.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/0.4774, allocations: 1.706 MB / 0.5204 GB, free: 7.668 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001665/0.479, allocations: 0.5131 MB / 0.5209 GB, free: 7.152 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/0.4808, allocations: 1.183 MB / 0.5221 GB, free: 5.973 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4808, allocations: 0 / 0.5221 GB, free: 5.973 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3158/0.7965, allocations: 52.72 MB / 0.5736 GB, free: 147.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.4, allocations: 1.719 kB / 0.5736 GB, free: 147.9 MB / 478.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.22792475670576]