Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001434/0.001434, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001383/0.001383, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.551/1.551, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 47.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1161, allocations: 53.32 MB / 426.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.2489/0.3651, allocations: 11.57 MB / 437.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009117/0.3742, allocations: 3.945 MB / 441.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003374/0.3775, allocations: 78.06 kB / 441.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002925/0.3805, allocations: 0.871 MB / 442.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003795/0.3843, allocations: 0.9895 MB / 443.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.3858, allocations: 0.5134 MB / 444.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005009/0.3908, allocations: 3.227 MB / 447.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002942/0.3938, allocations: 1.852 MB / 449.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.3967, allocations: 1.476 MB / 450.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004257/0.401, allocations: 1.864 MB / 452.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007898/0.4018, allocations: 386.9 kB / 453.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.4036, allocations: 0.6279 MB / 453.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.405, allocations: 1.082 MB / 454.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002428/0.4074, allocations: 1.723 MB / 456.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007485/0.4149, allocations: 5.07 MB / 461.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4149, allocations: 1.031 kB / 461.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4149, allocations: 0 / 461.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001713/0.4151, allocations: 0 / 461.6 MB, free: 8.375 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.01021/0.4253, allocations: 3.582 MB / 465.2 MB, free: 5.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.677e-05/0.4254, allocations: 9.719 kB / 465.2 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006472/0.426, allocations: 365.5 kB / 465.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002063/0.4281, allocations: 465.1 kB / 466 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00426/0.4324, allocations: 1.872 MB / 467.9 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.4325, allocations: 191.8 kB / 468 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004958/0.433, allocations: 255.1 kB / 468.3 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006773/0.4398, allocations: 3.246 MB / 471.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.804e-05/0.4399, allocations: 3.469 kB / 471.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000258/0.4401, allocations: 104.7 kB / 471.6 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.4403, allocations: 117.1 kB / 471.8 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005427/0.4457, allocations: 2.703 MB / 474.5 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01936/0.4651, allocations: 10.28 MB / 484.7 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.4676, allocations: 1.696 MB / 486.4 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.4696, allocations: 0.9919 MB / 487.4 MB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003322/0.4699, allocations: 195.2 kB / 487.6 MB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.4699, allocations: 47.56 kB / 487.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.286e-06/0.4699, allocations: 0 / 487.7 MB, free: 2.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01999/0.4899, allocations: 7.449 MB / 495.1 MB, free: 11.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.49, allocations: 64.72 kB / 495.2 MB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/0.4935, allocations: 1.893 MB / 497.1 MB, free: 9.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001594/0.4936, allocations: 49.7 kB / 497.1 MB, free: 9.215 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.4947, allocations: 1.276 MB / 498.4 MB, free: 7.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005524/0.4952, allocations: 491.8 kB / 498.9 MB, free: 7.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005307/0.4957, allocations: 299.4 kB / 499.2 MB, free: 7.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4959, allocations: 305.1 kB / 499.5 MB, free: 6.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.4974, allocations: 0.8159 MB / 0.4886 GB, free: 6.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/0.4993, allocations: 1.308 MB / 0.4898 GB, free: 4.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003552/0.5029, allocations: 2.254 MB / 0.492 GB, free: 2.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.5029, allocations: 11.94 kB / 0.4921 GB, free: 2.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00559/0.5084, allocations: 2.796 MB / 0.4948 GB, free: 15.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.5085, allocations: 12 kB / 0.4948 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/0.5085, allocations: 19.94 kB / 0.4948 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.5097, allocations: 419.8 kB / 0.4952 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.5113, allocations: 399.3 kB / 0.4956 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007451/0.5187, allocations: 5.794 MB / 0.5013 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/0.5208, allocations: 127.8 kB / 0.5014 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/0.5211, allocations: 75.98 kB / 0.5014 GB, free: 8.082 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002097/0.5232, allocations: 0.7822 MB / 0.5022 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007735/0.524, allocations: 210.7 kB / 0.5024 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005264/0.5292, allocations: 2.395 MB / 0.5048 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/0.5293, allocations: 16 kB / 0.5048 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.5293, allocations: 12.75 kB / 0.5048 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.5293, allocations: 3.984 kB / 0.5048 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.5411, allocations: 5.262 MB / 0.5099 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.5411, allocations: 4 kB / 0.5099 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.5423, allocations: 251.7 kB / 0.5102 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/0.5438, allocations: 466 kB / 0.5106 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.5439, allocations: 35.98 kB / 0.5106 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008689/0.5526, allocations: 7.344 MB / 0.5178 GB, free: 6.695 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.262e-05/0.5526, allocations: 11.88 kB / 0.5178 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007146/0.5598, allocations: 3.564 MB / 0.5213 GB, free: 3.016 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.5611, allocations: 459.7 kB / 0.5217 GB, free: 2.547 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007491/0.5619, allocations: 32 kB / 0.5218 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.5635, allocations: 107.8 kB / 0.5219 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.5638, allocations: 104.7 kB / 0.522 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.564, allocations: 43.98 kB / 0.522 GB, free: 2.266 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002931/0.5669, allocations: 1.303 MB / 0.5233 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5669, allocations: 4 kB / 0.5233 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002804/0.5697, allocations: 0.5469 MB / 0.5238 GB, free: 432 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,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.007444/0.5771, allocations: 4.238 MB / 0.528 GB, free: 12.07 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004901/0.582, allocations: 2.345 MB / 0.5303 GB, free: 9.684 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.5821, allocations: 0 / 0.5303 GB, free: 9.684 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002984/0.585, allocations: 1.45 MB / 0.5317 GB, free: 8.195 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/0.5884, allocations: 450.3 kB / 0.5321 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04234/0.6308, allocations: 20.52 MB / 0.5521 GB, free: 2.445 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002894/0.6337, allocations: 2.014 MB / 0.5541 GB, free: 408 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001755/0.6354, allocations: 431.8 kB / 0.5545 GB, free: 15.97 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/0.6372, allocations: 0.9952 MB / 0.5555 GB, free: 14.98 MB / 478.1 MB Notification: Performance of SimCode: time 2.855e-06/0.6372, allocations: 0 / 0.5555 GB, free: 14.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1167/0.7539, allocations: 49.34 MB / 0.6037 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.63, allocations: 9.812 kB / 0.6037 GB, free: 14.06 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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: 23.379199999850243]