Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001171/0.001171, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008662/0.0008662, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9058/0.9058, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 324.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.731e-05/1.865e-05, allocations: 3.125 kB / 324.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02749/0.02751, allocations: 34.43 MB / 359 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02126/0.04877, allocations: 10.37 MB / 369.4 MB, free: 2.84 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00824/0.05701, allocations: 370 kB / 369.7 MB, free: 2.477 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01151/0.06852, allocations: 8.435 MB / 378.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.07866, allocations: 3.57 MB / 381.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005866/0.08453, allocations: 2.345 MB / 384.1 MB, free: 4.086 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01403/0.09856, allocations: 13.52 MB / 397.6 MB, free: 6.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02519/0.1238, allocations: 17.16 MB / 414.8 MB, free: 5.199 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01658/0.1403, allocations: 10.33 MB / 425.1 MB, free: 10.86 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01069/0.151, allocations: 6.685 MB / 431.8 MB, free: 4.156 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004201/0.1552, allocations: 1.957 MB / 433.7 MB, free: 2.199 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005765/0.161, allocations: 2.358 MB / 436.1 MB, free: 15.84 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005646/0.1666, allocations: 4.036 MB / 440.1 MB, free: 11.79 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009485/0.1761, allocations: 5.084 MB / 445.2 MB, free: 6.699 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3574/0.5335, allocations: 26.25 MB / 471.5 MB, free: 48.16 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.5335, allocations: 0 / 471.5 MB, free: 48.16 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5335, allocations: 0 / 471.5 MB, free: 48.16 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0007185/0.5342, allocations: 0 / 471.5 MB, free: 48.16 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03821/0.5724, allocations: 15.12 MB / 486.6 MB, free: 41.43 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.5725, allocations: 18.25 kB / 486.6 MB, free: 41.42 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007205/0.5797, allocations: 1.714 MB / 488.3 MB, free: 41 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01955/0.5993, allocations: 6.128 MB / 494.4 MB, free: 38.57 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/0.6149, allocations: 8.096 MB / 0.4908 GB, free: 34.07 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007259/0.6157, allocations: 0.9099 MB / 0.4916 GB, free: 33.65 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005285/0.6209, allocations: 1.206 MB / 0.4928 GB, free: 33.25 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03699/0.6579, allocations: 18.91 MB / 0.5113 GB, free: 15.49 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002311/0.6582, allocations: 19.91 kB / 0.5113 GB, free: 15.47 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009829/0.6591, allocations: 0.4923 MB / 0.5118 GB, free: 14.99 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003411/0.6595, allocations: 0.6382 MB / 0.5124 GB, free: 14.35 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.681, allocations: 16.75 MB / 0.5288 GB, free: 13.59 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06765/0.7486, allocations: 52.49 MB / 0.58 GB, free: 8.926 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/0.759, allocations: 10.28 MB / 0.5901 GB, free: 284 kB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00345/0.7625, allocations: 3.402 MB / 0.5934 GB, free: 12.86 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009694/0.7722, allocations: 7.725 MB / 0.6009 GB, free: 5.238 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.7722, allocations: 65.31 kB / 0.601 GB, free: 5.164 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 4.779e-06/0.7722, allocations: 0 / 0.601 GB, free: 5.164 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.02416/0.7964, allocations: 17.28 MB / 0.6179 GB, free: 3.906 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.7964, allocations: 94.41 kB / 0.618 GB, free: 3.801 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1652/0.9617, allocations: 5.21 MB / 0.623 GB, free: 173.8 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.000644/0.9623, allocations: 87.52 kB / 0.6231 GB, free: 173.7 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002257/0.9646, allocations: 5.618 MB / 0.6286 GB, free: 171.6 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007693/0.9654, allocations: 1.402 MB / 0.63 GB, free: 170.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/0.9667, allocations: 1.319 MB / 0.6313 GB, free: 170.6 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.581e-05/0.9667, allocations: 305.7 kB / 0.6316 GB, free: 170.3 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002788/0.9695, allocations: 2.908 MB / 0.6344 GB, free: 170.1 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003334/0.9729, allocations: 5.93 MB / 0.6402 GB, free: 165.1 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/0.979, allocations: 9.456 MB / 0.6494 GB, free: 158.3 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.917e-05/0.979, allocations: 31.03 kB / 0.6495 GB, free: 158.3 MB / 0.4949 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008885/0.9879, allocations: 9.865 MB / 0.6591 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.988, allocations: 48.78 kB / 0.6591 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.609e-05/0.988, allocations: 104.1 kB / 0.6592 GB, free: 154.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.9893, allocations: 0.9491 MB / 0.6602 GB, free: 153.5 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/0.9919, allocations: 1.584 MB / 0.6617 GB, free: 152.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.9981, allocations: 9.762 MB / 0.6712 GB, free: 143 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/1.001, allocations: 408.5 kB / 0.6716 GB, free: 142.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/1.001, allocations: 351.4 kB / 0.672 GB, free: 142.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005313/1.006, allocations: 4.244 MB / 0.6761 GB, free: 138.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005223/1.007, allocations: 0.5432 MB / 0.6766 GB, free: 138.1 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006058/1.013, allocations: 6.464 MB / 0.683 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/1.013, allocations: 42.56 kB / 0.683 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.013, allocations: 8 kB / 0.683 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/1.013, allocations: 22.61 kB / 0.683 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.027, allocations: 15 MB / 0.6977 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/1.027, allocations: 4 kB / 0.6977 GB, free: 119.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/1.028, allocations: 0.7493 MB / 0.6984 GB, free: 118.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/1.029, allocations: 0.7846 MB / 0.6992 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/1.029, allocations: 87.95 kB / 0.6993 GB, free: 117.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005138/1.035, allocations: 8.918 MB / 0.708 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.035, allocations: 1.422 kB / 0.708 GB, free: 108.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007703/1.042, allocations: 9.518 MB / 0.7173 GB, free: 98.54 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.044, allocations: 1.031 MB / 0.7183 GB, free: 97.51 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/1.044, allocations: 78.77 kB / 0.7183 GB, free: 97.43 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/1.045, allocations: 219.8 kB / 0.7186 GB, free: 97.22 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/1.046, allocations: 282.5 kB / 0.7188 GB, free: 96.94 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/1.046, allocations: 119 kB / 0.7189 GB, free: 96.83 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002915/1.049, allocations: 3.359 MB / 0.7222 GB, free: 93.48 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.31e-07/1.049, allocations: 4 kB / 0.7222 GB, free: 93.48 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004097/1.053, allocations: 1.887 MB / 0.7241 GB, free: 91.59 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.007825/1.061, allocations: 10.24 MB / 0.7341 GB, free: 81.25 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00606/1.067, allocations: 7.232 MB / 0.7411 GB, free: 73.98 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.067, allocations: 4 kB / 0.7411 GB, free: 73.98 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002476/1.069, allocations: 3.164 MB / 0.7442 GB, free: 70.77 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/1.072, allocations: 1.302 MB / 0.7455 GB, free: 69.51 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0604/1.132, allocations: 65.21 MB / 0.8092 GB, free: 448 kB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1443/1.277, allocations: 6.922 MB / 0.8159 GB, free: 182.8 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.003516/1.28, allocations: 2.151 MB / 0.818 GB, free: 182.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002972/1.283, allocations: 4.354 MB / 0.8223 GB, free: 180.7 MB / 0.4949 GB Notification: Performance of SimCode: time 9.42e-07/1.283, allocations: 0 / 0.8223 GB, free: 180.7 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.122/1.405, allocations: 152.3 MB / 0.971 GB, free: 39.92 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/13.6, allocations: 4 kB / 0.971 GB, free: 39.91 MB / 0.4949 GB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 654] Reference file matches [Calling sys.exit(0), Time elapsed: 24.302641693502665]