Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002196/0.002196, allocations: 55.91 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2707, allocations: 53.42 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01513/0.2858, allocations: 11.06 MB / 442.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00833/0.2942, allocations: 3.695 MB / 446 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00221/0.2964, allocations: 83.44 kB / 446 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003017/0.2994, allocations: 0.8891 MB / 446.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003881/0.3033, allocations: 0.9165 MB / 447.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.305, allocations: 463.3 kB / 448.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004647/0.3096, allocations: 2.958 MB / 451.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003175/0.3128, allocations: 1.568 MB / 452.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002493/0.3153, allocations: 1.417 MB / 454.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003232/0.3185, allocations: 1.802 MB / 456 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001041/0.3196, allocations: 375.9 kB / 456.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.3212, allocations: 483.8 kB / 456.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001749/0.3229, allocations: 1.095 MB / 458 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002997/0.3259, allocations: 1.676 MB / 459.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006867/0.3328, allocations: 4.913 MB / 464.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3328, allocations: 0 / 464.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3328, allocations: 0 / 464.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001497/0.3329, allocations: 0 / 464.6 MB, free: 5.145 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.008461/0.3414, allocations: 3.402 MB / 468 MB, free: 1.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3414, allocations: 8.031 kB / 468 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008637/0.3423, allocations: 370.9 kB / 468.3 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/0.3436, allocations: 362.8 kB / 468.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0041/0.3477, allocations: 1.752 MB / 470.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.3479, allocations: 193.1 kB / 470.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006694/0.3486, allocations: 251.9 kB / 470.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006906/0.3555, allocations: 3.279 MB / 474.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.707e-05/0.3556, allocations: 7.984 kB / 474.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.356, allocations: 104 kB / 474.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/0.3561, allocations: 128.9 kB / 474.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005556/0.3617, allocations: 2.748 MB / 477.1 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01914/0.3808, allocations: 10.22 MB / 487.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.3827, allocations: 1.085 MB / 488.4 MB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.384, allocations: 0.7059 MB / 489.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002517/0.3842, allocations: 54.05 kB / 489.2 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.3843, allocations: 43.56 kB / 489.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.126e-06/0.3843, allocations: 0 / 489.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01541/0.3997, allocations: 6.637 MB / 495.9 MB, free: 5.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.3997, allocations: 64.41 kB / 495.9 MB, free: 5.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.4028, allocations: 1.794 MB / 497.7 MB, free: 3.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.403, allocations: 45.7 kB / 497.8 MB, free: 3.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.4041, allocations: 1.314 MB / 499.1 MB, free: 1.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004576/0.4045, allocations: 448.2 kB / 499.5 MB, free: 1.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/0.4051, allocations: 295.5 kB / 499.8 MB, free: 1.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4052, allocations: 309 kB / 0.4884 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.4065, allocations: 0.7691 MB / 0.4891 GB, free: 152 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/0.4083, allocations: 1.3 MB / 0.4904 GB, free: 14.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/0.4116, allocations: 2.21 MB / 0.4926 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/0.4116, allocations: 4 kB / 0.4926 GB, free: 12.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004538/0.4161, allocations: 2.486 MB / 0.495 GB, free: 9.664 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.4162, allocations: 12.69 kB / 0.495 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.778e-05/0.4162, allocations: 19.94 kB / 0.495 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000646/0.4168, allocations: 239.2 kB / 0.4953 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.4184, allocations: 419.3 kB / 0.4957 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003145/0.4215, allocations: 3.039 MB / 0.4986 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.423, allocations: 127.8 kB / 0.4988 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002131/0.4232, allocations: 75.92 kB / 0.4988 GB, free: 5.512 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.001741/0.425, allocations: 0.8281 MB / 0.4996 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005646/0.4255, allocations: 194.7 kB / 0.4998 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003807/0.4293, allocations: 2.039 MB / 0.5018 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.4294, allocations: 12 kB / 0.5018 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4294, allocations: 0 / 0.5018 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4294, allocations: 3.984 kB / 0.5018 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009346/0.4387, allocations: 4.709 MB / 0.5064 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.4387, allocations: 4 kB / 0.5064 GB, free: 13.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.4398, allocations: 259.6 kB / 0.5067 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005832/0.4404, allocations: 211.5 kB / 0.5069 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4405, allocations: 20 kB / 0.5069 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002903/0.4434, allocations: 3.012 MB / 0.5098 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4434, allocations: 0 / 0.5098 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005107/0.4485, allocations: 3.144 MB / 0.5129 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.4497, allocations: 374.5 kB / 0.5133 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004147/0.4501, allocations: 23.94 kB / 0.5133 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.4512, allocations: 95.94 kB / 0.5134 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.4514, allocations: 84.78 kB / 0.5135 GB, free: 6.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.219e-05/0.4515, allocations: 35.98 kB / 0.5135 GB, free: 6.062 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002197/0.4537, allocations: 1.22 MB / 0.5147 GB, free: 4.852 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4537, allocations: 0 / 0.5147 GB, free: 4.852 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001998/0.4557, allocations: 495.9 kB / 0.5152 GB, free: 4.367 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.005874/0.4615, allocations: 3.78 MB / 0.5189 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004157/0.4657, allocations: 2.118 MB / 0.5209 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.4657, allocations: 0 / 0.5209 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.4677, allocations: 1.122 MB / 0.522 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/0.4707, allocations: 0.4953 MB / 0.5225 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/0.7292, allocations: 18.81 MB / 0.5409 GB, free: 98.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001498/0.7307, allocations: 2.019 MB / 0.5428 GB, free: 97.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001232/0.7319, allocations: 0.4985 MB / 0.5433 GB, free: 97.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/0.7329, allocations: 1.019 MB / 0.5443 GB, free: 96.99 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7329, allocations: 0 / 0.5443 GB, free: 96.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08626/0.8192, allocations: 47.68 MB / 0.5909 GB, free: 54.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.86, allocations: 7.922 kB / 0.5909 GB, free: 54.84 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 21.416439190972596]