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.001388/0.001388, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001468/0.001468, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.589/1.589, allocations: 230.6 MB / 254.1 MB, free: 15.07 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 47.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1125, allocations: 53.34 MB / 426.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2404/0.3529, allocations: 10.99 MB / 437.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.3599, allocations: 3.683 MB / 441 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002877/0.3628, allocations: 83.84 kB / 441.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002707/0.3655, allocations: 0.8823 MB / 442 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003888/0.3694, allocations: 0.9112 MB / 442.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.3709, allocations: 463.6 kB / 443.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004711/0.3756, allocations: 2.954 MB / 446.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002893/0.3785, allocations: 1.982 MB / 448.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003259/0.3818, allocations: 1.417 MB / 449.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/0.3854, allocations: 1.795 MB / 451.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008992/0.3863, allocations: 372.3 kB / 451.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001662/0.388, allocations: 491.6 kB / 452.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001378/0.3894, allocations: 1.082 MB / 453.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002821/0.3922, allocations: 1.667 MB / 455.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007139/0.3993, allocations: 4.91 MB / 460 MB, free: 9.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3993, allocations: 4 kB / 460 MB, free: 9.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3993, allocations: 2.438 kB / 460 MB, free: 9.625 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001242/0.3995, allocations: 0 / 460 MB, free: 9.625 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.008616/0.4081, allocations: 3.484 MB / 463.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.4081, allocations: 10.28 kB / 463.5 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006827/0.4088, allocations: 363.5 kB / 463.8 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/0.41, allocations: 361.6 kB / 464.2 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003633/0.4136, allocations: 1.836 MB / 466 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.4138, allocations: 192.1 kB / 466.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004055/0.4142, allocations: 258.4 kB / 466.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006174/0.4203, allocations: 3.277 MB / 469.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.386e-05/0.4204, allocations: 11.16 kB / 469.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002499/0.4207, allocations: 104.3 kB / 469.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.4208, allocations: 126 kB / 470 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005291/0.4261, allocations: 2.748 MB / 472.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/0.4444, allocations: 10.41 MB / 483.1 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002099/0.4465, allocations: 1.294 MB / 484.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.4477, allocations: 0.6965 MB / 485.1 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003673/0.4481, allocations: 203.2 kB / 485.3 MB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/0.4482, allocations: 43.56 kB / 485.4 MB, free: 5.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.605e-06/0.4482, allocations: 0 / 485.4 MB, free: 5.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01708/0.4653, allocations: 6.947 MB / 492.3 MB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.4654, allocations: 64.41 kB / 492.4 MB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.4686, allocations: 1.802 MB / 494.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.4687, allocations: 45.7 kB / 494.2 MB, free: 12.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.4698, allocations: 1.306 MB / 495.5 MB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004747/0.4703, allocations: 460.1 kB / 496 MB, free: 10.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006381/0.471, allocations: 291.5 kB / 496.3 MB, free: 10.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4711, allocations: 305.1 kB / 496.6 MB, free: 9.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.4724, allocations: 0.7769 MB / 497.4 MB, free: 9.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.4742, allocations: 1.288 MB / 498.6 MB, free: 7.535 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003248/0.4775, allocations: 2.21 MB / 0.4891 GB, free: 5.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.4775, allocations: 4 kB / 0.4891 GB, free: 5.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004784/0.4823, allocations: 2.491 MB / 0.4915 GB, free: 2.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.4823, allocations: 12 kB / 0.4916 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/0.4823, allocations: 16 kB / 0.4916 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006876/0.483, allocations: 232.2 kB / 0.4918 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.4846, allocations: 419.3 kB / 0.4922 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.4879, allocations: 3.242 MB / 0.4954 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4896, allocations: 131.8 kB / 0.4955 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.4897, allocations: 68 kB / 0.4956 GB, free: 14.18 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.001927/0.4917, allocations: 0.8251 MB / 0.4964 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005197/0.4922, allocations: 190.8 kB / 0.4965 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003945/0.4961, allocations: 2.047 MB / 0.4985 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.4961, allocations: 12 kB / 0.4985 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4961, allocations: 4 kB / 0.4986 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4962, allocations: 7.969 kB / 0.4986 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00886/0.505, allocations: 4.738 MB / 0.5032 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.505, allocations: 4 kB / 0.5032 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.5061, allocations: 263.9 kB / 0.5034 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005848/0.5067, allocations: 211.1 kB / 0.5036 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.113e-05/0.5068, allocations: 24 kB / 0.5037 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003372/0.5102, allocations: 3.208 MB / 0.5068 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.5102, allocations: 7.969 kB / 0.5068 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005186/0.5154, allocations: 3.146 MB / 0.5099 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.5165, allocations: 431.7 kB / 0.5103 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.5167, allocations: 28.94 kB / 0.5103 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009446/0.5177, allocations: 99.8 kB / 0.5104 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.5179, allocations: 76.89 kB / 0.5105 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.518, allocations: 32 kB / 0.5105 GB, free: 14.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.5201, allocations: 1.228 MB / 0.5117 GB, free: 13.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5201, allocations: 4 kB / 0.5117 GB, free: 13.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001864/0.522, allocations: 487.9 kB / 0.5122 GB, free: 12.66 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.005693/0.5276, allocations: 3.783 MB / 0.5159 GB, free: 8.816 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004059/0.5317, allocations: 2.276 MB / 0.5181 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5317, allocations: 0 / 0.5181 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.5337, allocations: 1.268 MB / 0.5193 GB, free: 5.137 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/0.5363, allocations: 0.4948 MB / 0.5198 GB, free: 4.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03115/0.5675, allocations: 18.79 MB / 0.5382 GB, free: 1.125 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00204/0.5695, allocations: 2.006 MB / 0.5401 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001514/0.571, allocations: 0.496 MB / 0.5406 GB, free: 14.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001538/0.5726, allocations: 1.015 MB / 0.5416 GB, free: 13.57 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5726, allocations: 4 kB / 0.5416 GB, free: 13.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1158/0.6884, allocations: 46.49 MB / 0.587 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/14.39, allocations: 0 / 0.587 GB, free: 15.52 MB / 0.4981 GB " [Timeout remaining time 645] (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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 20.25550491292961]