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.001739/0.001739, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002268/0.002268, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.45/1.45, allocations: 207.6 MB / 235.3 MB, free: 10 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.001805/0.001805, allocations: 60.34 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3085, allocations: 49.17 MB / 396.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0163/0.3248, allocations: 15.25 MB / 411.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.3398, allocations: 5.146 MB / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004302/0.3441, allocations: 111 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004325/0.3485, allocations: 1.13 MB / 418 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.3541, allocations: 1.267 MB / 419.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003183/0.3573, allocations: 0.9406 MB / 420.2 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006281/0.3636, allocations: 3.633 MB / 423.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004569/0.3681, allocations: 1.87 MB / 425.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003446/0.3716, allocations: 1.761 MB / 427.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003906/0.3755, allocations: 2.091 MB / 429.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009991/0.3765, allocations: 479.2 kB / 430 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.3785, allocations: 0.6833 MB / 430.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001219/0.3797, allocations: 1.153 MB / 431.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.3826, allocations: 2.046 MB / 433.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008315/0.3909, allocations: 6.272 MB / 440.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3909, allocations: 4 kB / 440.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3909, allocations: 0 / 440.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001565/0.3911, allocations: 0 / 440.2 MB, free: 7.445 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.01224/0.4033, allocations: 4.252 MB / 444.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.4033, allocations: 11.98 kB / 444.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00069/0.404, allocations: 455.3 kB / 444.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002853/0.4069, allocations: 0.631 MB / 445.5 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004638/0.4115, allocations: 2.074 MB / 447.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.4117, allocations: 238.6 kB / 447.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005076/0.4122, allocations: 315.9 kB / 448.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007512/0.4198, allocations: 4.043 MB / 452.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-05/0.4198, allocations: 4 kB / 452.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002979/0.4201, allocations: 124 kB / 452.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.4203, allocations: 150.2 kB / 452.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006302/0.4266, allocations: 3.374 MB / 455.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02242/0.449, allocations: 12.84 MB / 468.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00337/0.4524, allocations: 1.692 MB / 470.4 MB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001606/0.454, allocations: 0.8987 MB / 471.3 MB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004943/0.4589, allocations: 2.4 MB / 473.7 MB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.71e-05/0.459, allocations: 43.56 kB / 473.7 MB, free: 5.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.015e-06/0.459, allocations: 0 / 473.7 MB, free: 5.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01281/0.4718, allocations: 5.828 MB / 479.5 MB, free: 15.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.4719, allocations: 64.72 kB / 479.6 MB, free: 15.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.4749, allocations: 1.893 MB / 481.5 MB, free: 13.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.475, allocations: 45.7 kB / 481.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.4763, allocations: 1.548 MB / 483.1 MB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004719/0.4768, allocations: 0.4997 MB / 483.6 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005254/0.4773, allocations: 335.4 kB / 483.9 MB, free: 10.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4774, allocations: 305.1 kB / 484.2 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.4787, allocations: 0.7652 MB / 485 MB, free: 9.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.4806, allocations: 1.383 MB / 486.4 MB, free: 8.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003276/0.4839, allocations: 2.308 MB / 488.7 MB, free: 5.691 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.4839, allocations: 4 kB / 488.7 MB, free: 5.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004532/0.4884, allocations: 2.486 MB / 491.2 MB, free: 3.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.4884, allocations: 16 kB / 491.2 MB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.201e-05/0.4885, allocations: 23.94 kB / 491.2 MB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003977/0.4889, allocations: 118.9 kB / 491.3 MB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/0.4907, allocations: 495.2 kB / 491.8 MB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.492, allocations: 1.306 MB / 493.1 MB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.4936, allocations: 111.9 kB / 493.2 MB, free: 1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.4937, allocations: 84.11 kB / 493.3 MB, free: 0.918 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.002002/0.4957, allocations: 0.989 MB / 494.3 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005281/0.4962, allocations: 210.6 kB / 494.5 MB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.4999, allocations: 1.965 MB / 496.4 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.4999, allocations: 12 kB / 496.5 MB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4999, allocations: 4 kB / 496.5 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/0.4999, allocations: 7.969 kB / 496.5 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009919/0.5099, allocations: 4.955 MB / 0.4897 GB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.5099, allocations: 4 kB / 0.4897 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/0.5114, allocations: 319.5 kB / 0.49 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003718/0.5117, allocations: 98.77 kB / 0.4901 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.5119, allocations: 35.92 kB / 0.4901 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.5134, allocations: 1.279 MB / 0.4914 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5134, allocations: 4 kB / 0.4914 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005702/0.5191, allocations: 3.095 MB / 0.4944 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/0.5205, allocations: 382.5 kB / 0.4948 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005689/0.521, allocations: 31.98 kB / 0.4948 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.5224, allocations: 75.91 kB / 0.4949 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.5226, allocations: 93.08 kB / 0.4949 GB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.5227, allocations: 40.05 kB / 0.495 GB, free: 3.031 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003064/0.5258, allocations: 1.285 MB / 0.4962 GB, free: 1.723 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5258, allocations: 7.938 kB / 0.4962 GB, free: 1.715 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002325/0.5281, allocations: 0.5273 MB / 0.4968 GB, free: 1.188 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.006141/0.5342, allocations: 3.704 MB / 0.5004 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004192/0.5384, allocations: 1.968 MB / 0.5023 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.5384, allocations: 0 / 0.5023 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.5402, allocations: 0.9611 MB / 0.5032 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003163/0.5434, allocations: 0.5073 MB / 0.5037 GB, free: 9.949 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04238/0.5857, allocations: 20.1 MB / 0.5234 GB, free: 5.059 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003427/0.5892, allocations: 2.259 MB / 0.5256 GB, free: 2.766 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002103/0.5913, allocations: 0.5131 MB / 0.5261 GB, free: 2.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/0.5934, allocations: 1.183 MB / 0.5272 GB, free: 1.07 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/0.5934, allocations: 0 / 0.5272 GB, free: 1.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3501/0.9435, allocations: 51.42 MB / 0.5774 GB, free: 144.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/16.76, allocations: 6.969 kB / 0.5774 GB, free: 144.4 MB / 478.1 MB " [Timeout remaining time 643] (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: 19.748997111004428]