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.001342/0.001342, allocations: 121 kB / 18.5 MB, free: 4.562 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.00138/0.00138, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.423/1.423, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001502/0.001502, allocations: 52.06 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1042, allocations: 53.34 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2112/0.3154, allocations: 11 MB / 438 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006771/0.3221, allocations: 3.679 MB / 441.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001931/0.3241, allocations: 84.31 kB / 441.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002186/0.3262, allocations: 0.8814 MB / 442.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003596/0.3298, allocations: 0.9177 MB / 443.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.3312, allocations: 462.2 kB / 444.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004146/0.3353, allocations: 2.948 MB / 447 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002871/0.3382, allocations: 1.982 MB / 449 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002803/0.341, allocations: 1.417 MB / 450.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003342/0.3444, allocations: 1.804 MB / 452.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008386/0.3452, allocations: 372.3 kB / 452.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.3467, allocations: 483.3 kB / 453 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001378/0.348, allocations: 1.078 MB / 454.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003051/0.3511, allocations: 1.675 MB / 455.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006905/0.358, allocations: 4.906 MB / 460.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.358, allocations: 0.8438 kB / 460.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.358, allocations: 0 / 460.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001545/0.3582, allocations: 0 / 460.7 MB, free: 9.641 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.008786/0.3669, allocations: 3.489 MB / 464.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.367, allocations: 9.344 kB / 464.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001181/0.3671, allocations: 67.28 kB / 464.3 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005853/0.3677, allocations: 364 kB / 464.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/0.3688, allocations: 369.5 kB / 465 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003514/0.3723, allocations: 1.836 MB / 466.8 MB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.3725, allocations: 191.5 kB / 467 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.3729, allocations: 251.2 kB / 467.2 MB, free: 5.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005923/0.3788, allocations: 3.287 MB / 470.5 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.208e-05/0.3788, allocations: 3.375 kB / 470.5 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/0.3791, allocations: 101.2 kB / 470.6 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.3792, allocations: 122.5 kB / 470.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004677/0.3839, allocations: 2.754 MB / 473.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01737/0.4013, allocations: 10.41 MB / 483.9 MB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.4032, allocations: 1.294 MB / 485.2 MB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.4044, allocations: 0.6915 MB / 485.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.4047, allocations: 212.2 kB / 486.1 MB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.4048, allocations: 43.56 kB / 486.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.376e-06/0.4048, allocations: 0 / 486.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01642/0.4212, allocations: 6.95 MB / 493.1 MB, free: 14.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.4213, allocations: 69.19 kB / 493.2 MB, free: 13.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003074/0.4243, allocations: 1.79 MB / 495 MB, free: 12.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.4245, allocations: 49.69 kB / 495 MB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.4255, allocations: 1.298 MB / 496.3 MB, free: 10.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004443/0.426, allocations: 460.1 kB / 496.8 MB, free: 10.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004941/0.4265, allocations: 295.5 kB / 497 MB, free: 10.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4266, allocations: 305.1 kB / 497.3 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.4278, allocations: 0.7769 MB / 498.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.4295, allocations: 1.292 MB / 499.4 MB, free: 7.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.4327, allocations: 2.21 MB / 0.4899 GB, free: 5.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.4327, allocations: 4 kB / 0.4899 GB, free: 5.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004416/0.4371, allocations: 2.487 MB / 0.4923 GB, free: 2.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.4371, allocations: 12.62 kB / 0.4923 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/0.4371, allocations: 16 kB / 0.4923 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006716/0.4378, allocations: 244.7 kB / 0.4926 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.4393, allocations: 411.3 kB / 0.493 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/0.4425, allocations: 3.241 MB / 0.4961 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.4445, allocations: 131.8 kB / 0.4962 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.4447, allocations: 77.05 kB / 0.4963 GB, free: 14.11 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.001997/0.4467, allocations: 0.8135 MB / 0.4971 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/0.4473, allocations: 190.8 kB / 0.4973 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.4511, allocations: 2.046 MB / 0.4993 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.4511, allocations: 17.55 kB / 0.4993 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4511, allocations: 0 / 0.4993 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4511, allocations: 3.984 kB / 0.4993 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008333/0.4594, allocations: 4.745 MB / 0.5039 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.4595, allocations: 4.875 kB / 0.504 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.4606, allocations: 259.6 kB / 0.5042 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005756/0.4611, allocations: 204.6 kB / 0.5044 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.4612, allocations: 27.92 kB / 0.5044 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.4641, allocations: 3.216 MB / 0.5076 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.4642, allocations: 7.938 kB / 0.5076 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004899/0.4691, allocations: 3.144 MB / 0.5106 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.4701, allocations: 431.7 kB / 0.5111 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002424/0.4703, allocations: 31.92 kB / 0.5111 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009531/0.4713, allocations: 95.94 kB / 0.5112 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.4715, allocations: 72.89 kB / 0.5112 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.061e-05/0.4715, allocations: 35.98 kB / 0.5113 GB, free: 14.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.4735, allocations: 1.224 MB / 0.5125 GB, free: 13.08 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4735, allocations: 0 / 0.5125 GB, free: 13.08 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001624/0.4752, allocations: 487.9 kB / 0.5129 GB, free: 12.6 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.005206/0.4804, allocations: 3.785 MB / 0.5166 GB, free: 8.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.4841, allocations: 2.27 MB / 0.5189 GB, free: 6.414 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.4841, allocations: 1.875 kB / 0.5189 GB, free: 6.414 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.4859, allocations: 1.272 MB / 0.5201 GB, free: 5.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/0.4885, allocations: 0.4912 MB / 0.5206 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03084/0.5193, allocations: 18.79 MB / 0.5389 GB, free: 1.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001954/0.5213, allocations: 2.006 MB / 0.5409 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.5228, allocations: 0.4999 MB / 0.5414 GB, free: 14.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/0.5243, allocations: 1.015 MB / 0.5424 GB, free: 13.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5243, allocations: 0 / 0.5424 GB, free: 13.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0957/0.62, allocations: 46.53 MB / 0.5878 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.08, allocations: 4.062 kB / 0.5878 GB, free: 15.43 MB / 0.4981 GB " [Timeout remaining time 646] (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: 22.55915551399812]