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.001474/0.001474, allocations: 112.4 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.002824/0.002824, 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.469/1.469, 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.00209/0.00209, allocations: 51.94 kB / 347.2 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3152, allocations: 49.16 MB / 396.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01747/0.3326, allocations: 15.24 MB / 411.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3471, allocations: 5.146 MB / 416.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004791/0.3519, allocations: 108.3 kB / 416.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004846/0.3568, allocations: 1.129 MB / 418 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007044/0.3638, allocations: 1.271 MB / 419.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003824/0.3676, allocations: 0.9333 MB / 420.2 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007996/0.3756, allocations: 3.64 MB / 423.8 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006781/0.3824, allocations: 1.874 MB / 425.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006979/0.3894, allocations: 1.76 MB / 427.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006244/0.3956, allocations: 2.083 MB / 429.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002166/0.3978, allocations: 481.2 kB / 430 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003562/0.4014, allocations: 0.6911 MB / 430.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002473/0.4038, allocations: 1.153 MB / 431.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005333/0.4092, allocations: 2.046 MB / 433.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4217, allocations: 6.272 MB / 440.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.4217, allocations: 0 / 440.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4217, allocations: 0 / 440.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002685/0.422, allocations: 4 kB / 440.2 MB, free: 7.301 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.01613/0.4381, allocations: 4.248 MB / 444.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.4381, allocations: 11.98 kB / 444.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001863/0.44, allocations: 451.2 kB / 444.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004192/0.4442, allocations: 0.6349 MB / 445.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006307/0.4505, allocations: 2.077 MB / 447.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/0.4508, allocations: 234.7 kB / 447.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001409/0.4523, allocations: 319.8 kB / 448.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.4637, allocations: 4.047 MB / 452.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.4638, allocations: 7.922 kB / 452.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007144/0.4645, allocations: 128 kB / 452.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.4647, allocations: 146.2 kB / 452.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008242/0.4729, allocations: 3.37 MB / 455.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02728/0.5002, allocations: 12.83 MB / 468.7 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/0.5041, allocations: 1.696 MB / 470.4 MB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/0.5059, allocations: 0.8987 MB / 471.3 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005872/0.5118, allocations: 2.396 MB / 473.7 MB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.5118, allocations: 47.5 kB / 473.7 MB, free: 5.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.446e-06/0.5118, allocations: 8 kB / 473.7 MB, free: 5.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01355/0.5254, allocations: 5.812 MB / 479.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.5254, allocations: 64.72 kB / 479.6 MB, free: 15.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004026/0.5294, allocations: 1.893 MB / 481.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002022/0.5297, allocations: 49.7 kB / 481.5 MB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.5311, allocations: 1.548 MB / 483.1 MB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006325/0.5318, allocations: 0.5036 MB / 483.6 MB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006772/0.5324, allocations: 331.4 kB / 483.9 MB, free: 10.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.5326, allocations: 313 kB / 484.2 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.534, allocations: 0.7652 MB / 485 MB, free: 9.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/0.536, allocations: 1.383 MB / 486.4 MB, free: 8.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003767/0.5398, allocations: 2.3 MB / 488.7 MB, free: 5.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-05/0.5398, allocations: 8 kB / 488.7 MB, free: 5.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005173/0.545, allocations: 2.482 MB / 491.2 MB, free: 3.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.545, allocations: 15.98 kB / 491.2 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.941e-05/0.5451, allocations: 23.94 kB / 491.2 MB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/0.5455, allocations: 118.9 kB / 491.3 MB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/0.5475, allocations: 495.2 kB / 491.8 MB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.5491, allocations: 1.31 MB / 493.1 MB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.5512, allocations: 120 kB / 493.2 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002533/0.5515, allocations: 80 kB / 493.3 MB, free: 0.7695 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.002824/0.5543, allocations: 0.9852 MB / 494.3 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008081/0.5551, allocations: 214.6 kB / 494.5 MB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004798/0.5599, allocations: 1.961 MB / 496.5 MB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.5599, allocations: 19.94 kB / 496.5 MB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.5599, allocations: 0 / 496.5 MB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.56, allocations: 11.97 kB / 496.5 MB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.572, allocations: 4.955 MB / 0.4897 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.572, allocations: 0 / 0.4897 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.5735, allocations: 323.8 kB / 0.49 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003474/0.5739, allocations: 94.47 kB / 0.4901 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.574, allocations: 35.98 kB / 0.4901 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.5753, allocations: 1.271 MB / 0.4914 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5753, allocations: 4 kB / 0.4914 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005632/0.5809, allocations: 3.091 MB / 0.4944 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/0.5823, allocations: 386.5 kB / 0.4948 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000664/0.583, allocations: 28 kB / 0.4948 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5844, allocations: 75.91 kB / 0.4949 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.5846, allocations: 105.1 kB / 0.495 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.446e-05/0.5847, allocations: 36 kB / 0.495 GB, free: 2.887 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003018/0.5877, allocations: 1.289 MB / 0.4962 GB, free: 1.574 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5877, allocations: 0 / 0.4962 GB, free: 1.574 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002541/0.5903, allocations: 0.5273 MB / 0.4968 GB, free: 1.047 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.006114/0.5964, allocations: 3.704 MB / 0.5004 GB, free: 13.28 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003959/0.6003, allocations: 1.971 MB / 0.5023 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.6003, allocations: 4.875 kB / 0.5023 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.6021, allocations: 0.9566 MB / 0.5032 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003248/0.6053, allocations: 0.5101 MB / 0.5037 GB, free: 9.801 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04296/0.6483, allocations: 20.09 MB / 0.5234 GB, free: 4.922 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003132/0.6514, allocations: 2.263 MB / 0.5256 GB, free: 2.625 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001931/0.6533, allocations: 0.5092 MB / 0.5261 GB, free: 2.113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002267/0.6556, allocations: 1.179 MB / 0.5272 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of SimCode: time 1.714e-06/0.6556, allocations: 0 / 0.5272 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3878/1.043, allocations: 51.43 MB / 0.5774 GB, free: 144.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.02/17.06, allocations: 3.875 kB / 0.5774 GB, free: 144.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 23.161144480109215]