Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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.001734/0.001734, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.002034/0.002034, allocations: 208.4 kB / 24.52 MB, free: 4.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3103, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01396/0.3242, allocations: 11.06 MB / 443 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008408/0.3326, allocations: 3.699 MB / 446.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.3353, allocations: 83.44 kB / 446.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002477/0.3377, allocations: 0.8852 MB / 447.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003368/0.3411, allocations: 0.9204 MB / 448.6 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.3423, allocations: 471.2 kB / 449 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004047/0.3464, allocations: 2.95 MB / 452 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/0.3486, allocations: 1.568 MB / 453.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002112/0.3507, allocations: 1.417 MB / 455 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002563/0.3533, allocations: 1.802 MB / 456.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005211/0.3538, allocations: 372 kB / 457.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009305/0.3547, allocations: 487.7 kB / 457.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.3558, allocations: 1.099 MB / 458.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002012/0.3578, allocations: 1.672 MB / 460.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00585/0.3637, allocations: 4.909 MB / 465.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3637, allocations: 0 / 465.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3637, allocations: 0 / 465.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001318/0.3638, allocations: 4 kB / 465.3 MB, free: 5.297 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008177/0.372, allocations: 3.405 MB / 468.7 MB, free: 1.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.3721, allocations: 8.031 kB / 468.7 MB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.6e-05/0.3722, allocations: 77.22 kB / 468.8 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005339/0.3727, allocations: 363 kB / 469.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.3737, allocations: 358.8 kB / 469.5 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003536/0.3773, allocations: 1.752 MB / 471.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.3774, allocations: 189 kB / 471.4 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003745/0.3778, allocations: 255.9 kB / 471.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00557/0.3834, allocations: 3.275 MB / 475 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.691e-05/0.3835, allocations: 8 kB / 475 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.3837, allocations: 107.9 kB / 475.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/0.3838, allocations: 128.9 kB / 475.2 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004764/0.3886, allocations: 2.744 MB / 477.9 MB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0165/0.4051, allocations: 10.22 MB / 488.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.4069, allocations: 1.07 MB / 489.2 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4082, allocations: 0.7042 MB / 489.9 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002362/0.4084, allocations: 56.94 kB / 490 MB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.4085, allocations: 39.56 kB / 490 MB, free: 11.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.967e-06/0.4085, allocations: 0 / 490 MB, free: 11.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01504/0.4235, allocations: 6.644 MB / 496.7 MB, free: 5.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.4236, allocations: 64.41 kB / 496.7 MB, free: 5.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002816/0.4264, allocations: 1.794 MB / 498.5 MB, free: 3.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4265, allocations: 57.58 kB / 498.6 MB, free: 3.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.4276, allocations: 1.302 MB / 499.9 MB, free: 2.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.4279, allocations: 456.2 kB / 0.4886 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004713/0.4284, allocations: 291.5 kB / 0.4889 GB, free: 1.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4285, allocations: 305.1 kB / 0.4892 GB, free: 1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4298, allocations: 0.7769 MB / 0.4899 GB, free: 228 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.4314, allocations: 1.3 MB / 0.4912 GB, free: 14.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.4344, allocations: 2.206 MB / 0.4934 GB, free: 12.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.4344, allocations: 4 kB / 0.4934 GB, free: 12.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00407/0.4384, allocations: 2.487 MB / 0.4958 GB, free: 9.746 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.4385, allocations: 12 kB / 0.4958 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.4385, allocations: 16 kB / 0.4958 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006124/0.4391, allocations: 239.2 kB / 0.4961 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.4405, allocations: 419.3 kB / 0.4965 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.4433, allocations: 3.035 MB / 0.4994 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.4447, allocations: 135.8 kB / 0.4995 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.4448, allocations: 68 kB / 0.4996 GB, free: 5.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001421/0.4462, allocations: 0.8228 MB / 0.5004 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003161/0.4465, allocations: 194.7 kB / 0.5006 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0034/0.4499, allocations: 2.043 MB / 0.5026 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.45, allocations: 12 kB / 0.5026 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.45, allocations: 0 / 0.5026 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.45, allocations: 7.922 kB / 0.5026 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007535/0.4575, allocations: 4.705 MB / 0.5072 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.4575, allocations: 7.938 kB / 0.5072 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4586, allocations: 267.9 kB / 0.5075 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005189/0.4591, allocations: 207.2 kB / 0.5077 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.797e-05/0.4592, allocations: 27.94 kB / 0.5077 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/0.4619, allocations: 3.004 MB / 0.5106 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4619, allocations: 0 / 0.5106 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.4666, allocations: 3.14 MB / 0.5137 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009817/0.4676, allocations: 366.6 kB / 0.514 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.4678, allocations: 32 kB / 0.5141 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008958/0.4687, allocations: 95.86 kB / 0.5142 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.4689, allocations: 84.78 kB / 0.5142 GB, free: 6.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-05/0.469, allocations: 35.98 kB / 0.5143 GB, free: 6.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001843/0.4708, allocations: 1.22 MB / 0.5155 GB, free: 4.93 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4708, allocations: 4 kB / 0.5155 GB, free: 4.926 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001444/0.4723, allocations: 491.9 kB / 0.5159 GB, free: 4.445 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.00499/0.4772, allocations: 3.782 MB / 0.5196 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003514/0.4808, allocations: 2.121 MB / 0.5217 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4808, allocations: 0.875 kB / 0.5217 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.4825, allocations: 1.121 MB / 0.5228 GB, free: 13.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.4847, allocations: 0.4915 MB / 0.5233 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2276/0.7123, allocations: 18.81 MB / 0.5417 GB, free: 99.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001806/0.7141, allocations: 2.013 MB / 0.5436 GB, free: 98.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001383/0.7155, allocations: 0.4947 MB / 0.5441 GB, free: 98.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.7165, allocations: 1.01 MB / 0.5451 GB, free: 97.97 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7165, allocations: 0 / 0.5451 GB, free: 97.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08488/0.8014, allocations: 47.74 MB / 0.5917 GB, free: 55.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.45, allocations: 6.734 kB / 0.5917 GB, free: 55.37 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.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: 24.132830971037038]