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.0017/0.0017, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.002076/0.002076, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.55/1.55, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.002379/0.002379, allocations: 63.91 kB / 373.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1565, allocations: 53.32 MB / 426.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2698/0.4263, allocations: 11 MB / 437.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007612/0.4339, allocations: 3.684 MB / 441.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002114/0.436, allocations: 63.56 kB / 441.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.4384, allocations: 0.8742 MB / 442.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003232/0.4416, allocations: 0.9032 MB / 443.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.4428, allocations: 469.5 kB / 443.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004065/0.4469, allocations: 2.95 MB / 446.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002863/0.4497, allocations: 1.985 MB / 448.6 MB, free: 12 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003/0.4527, allocations: 1.386 MB / 450 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003172/0.4559, allocations: 1.799 MB / 451.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007054/0.4566, allocations: 373.2 kB / 452.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.4579, allocations: 482.8 kB / 452.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.4594, allocations: 1.086 MB / 453.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002661/0.462, allocations: 1.68 MB / 455.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007338/0.4694, allocations: 4.906 MB / 460.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.685e-05/0.4694, allocations: 0 / 460.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.4694, allocations: 1 kB / 460.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001527/0.4695, allocations: 0.5625 kB / 460.3 MB, free: 9.941 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.009264/0.4788, allocations: 3.477 MB / 463.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.4788, allocations: 13.78 kB / 463.8 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006315/0.4795, allocations: 371.1 kB / 464.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.4807, allocations: 361.6 kB / 464.5 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004069/0.4848, allocations: 1.831 MB / 466.3 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.485, allocations: 200.9 kB / 466.5 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004396/0.4854, allocations: 255.7 kB / 466.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006361/0.4918, allocations: 3.28 MB / 470.1 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.168e-05/0.4918, allocations: 3.531 kB / 470.1 MB, free: 3.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/0.4921, allocations: 104.9 kB / 470.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001754/0.4923, allocations: 121.7 kB / 470.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004956/0.4972, allocations: 2.751 MB / 473 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01854/0.5158, allocations: 10.41 MB / 483.4 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.5178, allocations: 1.306 MB / 484.7 MB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.519, allocations: 0.702 MB / 485.5 MB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003235/0.5193, allocations: 203.2 kB / 485.6 MB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.5194, allocations: 43.56 kB / 485.7 MB, free: 5.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 4.328e-06/0.5194, allocations: 5.828 kB / 485.7 MB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01596/0.5353, allocations: 6.935 MB / 492.6 MB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.5354, allocations: 72.34 kB / 492.7 MB, free: 14.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.5385, allocations: 1.794 MB / 494.5 MB, free: 12.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.5386, allocations: 45.7 kB / 494.5 MB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.5398, allocations: 1.31 MB / 495.9 MB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/0.5402, allocations: 452.7 kB / 496.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000506/0.5407, allocations: 291.5 kB / 496.6 MB, free: 10.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.5409, allocations: 313.1 kB / 496.9 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.5422, allocations: 0.773 MB / 497.7 MB, free: 9.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.5439, allocations: 1.292 MB / 498.9 MB, free: 7.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00317/0.5471, allocations: 2.21 MB / 0.4894 GB, free: 5.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.5471, allocations: 4.562 kB / 0.4894 GB, free: 5.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004547/0.5517, allocations: 2.487 MB / 0.4918 GB, free: 2.922 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.5517, allocations: 12 kB / 0.4919 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.12e-05/0.5517, allocations: 16 kB / 0.4919 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007418/0.5525, allocations: 239.5 kB / 0.4921 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.5541, allocations: 415.3 kB / 0.4925 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/0.5575, allocations: 3.235 MB / 0.4957 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.5594, allocations: 135.8 kB / 0.4958 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.5596, allocations: 72.06 kB / 0.4959 GB, free: 14.52 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.001955/0.5615, allocations: 0.8183 MB / 0.4967 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004516/0.562, allocations: 198.7 kB / 0.4968 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/0.5656, allocations: 2.043 MB / 0.4988 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.5656, allocations: 12 kB / 0.4988 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.5656, allocations: 0 / 0.4988 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.5656, allocations: 11.97 kB / 0.4989 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00921/0.5749, allocations: 4.75 MB / 0.5035 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.5749, allocations: 4 kB / 0.5035 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.576, allocations: 259.6 kB / 0.5037 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005464/0.5765, allocations: 199.3 kB / 0.5039 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.172e-05/0.5766, allocations: 27.98 kB / 0.504 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003273/0.5799, allocations: 3.214 MB / 0.5071 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.5799, allocations: 4 kB / 0.5071 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005256/0.5852, allocations: 3.144 MB / 0.5102 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/0.5866, allocations: 431.7 kB / 0.5106 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/0.5869, allocations: 24.75 kB / 0.5106 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000959/0.5879, allocations: 99.8 kB / 0.5107 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.588, allocations: 76.83 kB / 0.5108 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-05/0.5881, allocations: 40.06 kB / 0.5108 GB, free: 14.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002085/0.5902, allocations: 1.224 MB / 0.512 GB, free: 13.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5902, allocations: 4 kB / 0.512 GB, free: 13.48 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001914/0.5921, allocations: 487.9 kB / 0.5125 GB, free: 13.01 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.005665/0.5978, allocations: 3.781 MB / 0.5162 GB, free: 9.156 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004066/0.6018, allocations: 2.272 MB / 0.5184 GB, free: 6.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6019, allocations: 8.062 kB / 0.5184 GB, free: 6.812 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.6039, allocations: 1.268 MB / 0.5196 GB, free: 5.473 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/0.6072, allocations: 0.4893 MB / 0.5201 GB, free: 5.012 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03644/0.6436, allocations: 18.78 MB / 0.5385 GB, free: 1.484 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00315/0.6468, allocations: 2.018 MB / 0.5404 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001836/0.6486, allocations: 0.496 MB / 0.5409 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/0.6502, allocations: 1.019 MB / 0.5419 GB, free: 13.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6502, allocations: 0 / 0.5419 GB, free: 13.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1107/0.761, allocations: 46.48 MB / 0.5873 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.99, allocations: 7.219 kB / 0.5873 GB, free: 15.8 MB / 0.4981 GB " [Timeout remaining time 646] (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_2/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_2/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: 20.063743209000677]