Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 119.3 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 186.9 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_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_0_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.001943/0.001943, allocations: 47.92 kB / 365.6 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1173, allocations: 52.14 MB / 417.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01395/0.1313, allocations: 11.52 MB / 429.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008578/0.1399, allocations: 3.885 MB / 433.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.1419, allocations: 63.75 kB / 433.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003007/0.1449, allocations: 0.858 MB / 434.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003905/0.1489, allocations: 0.9901 MB / 435.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002035/0.1509, allocations: 0.511 MB / 435.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006107/0.157, allocations: 3.207 MB / 438.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0042/0.1612, allocations: 1.852 MB / 440.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002754/0.164, allocations: 1.437 MB / 442.1 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.1676, allocations: 1.86 MB / 444 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.1689, allocations: 388 kB / 444.4 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002064/0.1709, allocations: 0.6362 MB / 445 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001777/0.1727, allocations: 1.083 MB / 446.1 MB, free: 248 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2331/0.4058, allocations: 1.717 MB / 447.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007425/0.4132, allocations: 5.055 MB / 452.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.4132, allocations: 4.734 kB / 452.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4132, allocations: 0 / 452.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002239/0.4135, allocations: 3.938 kB / 452.9 MB, free: 12.34 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.01025/0.4237, allocations: 3.564 MB / 456.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.4238, allocations: 10.31 kB / 456.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009548/0.4247, allocations: 363.2 kB / 456.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.4267, allocations: 429.7 kB / 457.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004969/0.4316, allocations: 1.843 MB / 459 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.4318, allocations: 186 kB / 459.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007536/0.4326, allocations: 259.4 kB / 459.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007397/0.44, allocations: 3.247 MB / 462.7 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.603e-05/0.4401, allocations: 13.11 kB / 462.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002798/0.4404, allocations: 101 kB / 462.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001621/0.4405, allocations: 120.5 kB / 463 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005379/0.4459, allocations: 2.699 MB / 465.7 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/0.4648, allocations: 10.27 MB / 475.9 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.467, allocations: 1.715 MB / 477.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.4687, allocations: 0.9864 MB / 478.6 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002558/0.469, allocations: 198 kB / 478.8 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.469, allocations: 52.55 kB / 478.9 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.306e-06/0.469, allocations: 1.562 kB / 478.9 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.0182/0.4872, allocations: 7.447 MB / 486.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.4873, allocations: 67.78 kB / 486.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/0.4903, allocations: 1.874 MB / 488.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002329/0.4905, allocations: 49.39 kB / 488.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.4916, allocations: 1.274 MB / 489.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006117/0.4922, allocations: 495.9 kB / 490.1 MB, free: 9.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005005/0.4927, allocations: 299.8 kB / 490.4 MB, free: 9.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4929, allocations: 305.1 kB / 490.7 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.4942, allocations: 0.8126 MB / 491.5 MB, free: 9.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.4959, allocations: 1.317 MB / 492.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/0.4993, allocations: 2.249 MB / 495 MB, free: 5.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.4993, allocations: 8 kB / 495 MB, free: 5.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005325/0.5047, allocations: 2.801 MB / 497.8 MB, free: 2.781 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.5047, allocations: 12 kB / 497.9 MB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/0.5047, allocations: 16 kB / 497.9 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.5058, allocations: 415 kB / 498.3 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.5073, allocations: 404.1 kB / 498.7 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006776/0.5141, allocations: 5.799 MB / 0.4926 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.516, allocations: 129.2 kB / 0.4928 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.5162, allocations: 68 kB / 0.4928 GB, free: 11.74 MB / 398.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.001616/0.5178, allocations: 0.7907 MB / 0.4936 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006503/0.5185, allocations: 202.7 kB / 0.4938 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004709/0.5232, allocations: 2.385 MB / 0.4961 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.5232, allocations: 20.12 kB / 0.4962 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.5232, allocations: 4 kB / 0.4962 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.821e-05/0.5232, allocations: 11.91 kB / 0.4962 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.5341, allocations: 5.255 MB / 0.5013 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/0.5341, allocations: 8 kB / 0.5013 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.5352, allocations: 249.4 kB / 0.5015 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.5365, allocations: 457.9 kB / 0.502 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.5366, allocations: 39.98 kB / 0.502 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008472/0.545, allocations: 7.335 MB / 0.5092 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/0.545, allocations: 7.562 kB / 0.5092 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006769/0.5518, allocations: 3.572 MB / 0.5127 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.5533, allocations: 459.8 kB / 0.5131 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007708/0.5541, allocations: 35.98 kB / 0.5132 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/0.5557, allocations: 99.83 kB / 0.5132 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/0.556, allocations: 120.1 kB / 0.5134 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5561, allocations: 36 kB / 0.5134 GB, free: 6.141 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002697/0.5588, allocations: 1.294 MB / 0.5147 GB, free: 4.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5588, allocations: 0 / 0.5147 GB, free: 4.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002701/0.5615, allocations: 0.5429 MB / 0.5152 GB, free: 4.312 MB / 414.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.007594/0.5691, allocations: 4.251 MB / 0.5193 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005034/0.5741, allocations: 2.343 MB / 0.5216 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.5741, allocations: 0 / 0.5216 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003157/0.5773, allocations: 1.442 MB / 0.523 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003859/0.5812, allocations: 448.1 kB / 0.5235 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04331/0.6245, allocations: 20.47 MB / 0.5435 GB, free: 6.688 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/0.6272, allocations: 2.003 MB / 0.5454 GB, free: 4.652 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001706/0.6289, allocations: 435.6 kB / 0.5458 GB, free: 4.223 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/0.6306, allocations: 0.9952 MB / 0.5468 GB, free: 3.227 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.6306, allocations: 0 / 0.5468 GB, free: 3.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1328/0.7635, allocations: 49.19 MB / 0.5948 GB, free: 2.512 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/15.03, allocations: 10.06 kB / 0.5948 GB, free: 2.508 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.257299875374883]