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.001291/0.001291, allocations: 118.3 kB / 18.49 MB, free: 4.535 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.0014/0.0014, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.421/1.421, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 55.91 kB / 373.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1022, allocations: 53.38 MB / 427.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2353/0.3375, allocations: 40.25 MB / 467.4 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.3625, allocations: 10.68 MB / 478 MB, free: 8.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009358/0.3719, allocations: 370.3 kB / 478.4 MB, free: 8.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02143/0.3933, allocations: 8.626 MB / 487 MB, free: 1.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.4072, allocations: 3.479 MB / 490.5 MB, free: 15.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007685/0.4149, allocations: 2.379 MB / 492.9 MB, free: 13.26 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01897/0.4338, allocations: 12.96 MB / 0.494 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03401/0.4678, allocations: 19.63 MB / 0.5132 GB, free: 13.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01201/0.4799, allocations: 6.947 MB / 0.5199 GB, free: 6.992 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01347/0.4933, allocations: 7.907 MB / 0.5277 GB, free: 15.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005251/0.4986, allocations: 1.953 MB / 0.5296 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007231/0.5058, allocations: 2.371 MB / 0.5319 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006445/0.5123, allocations: 3.967 MB / 0.5358 GB, free: 6.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01422/0.5265, allocations: 7.564 MB / 0.5431 GB, free: 15.16 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03646/0.5629, allocations: 25.97 MB / 0.5685 GB, free: 5.113 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.5629, allocations: 4 kB / 0.5685 GB, free: 5.109 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5629, allocations: 0 / 0.5685 GB, free: 5.109 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000703/0.5636, allocations: 0 / 0.5685 GB, free: 5.109 MB / 478.1 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.04569/0.6093, allocations: 15.33 MB / 0.5835 GB, free: 5.645 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.6094, allocations: 12.03 kB / 0.5835 GB, free: 5.633 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003914/0.6098, allocations: 337 kB / 0.5838 GB, free: 5.301 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005883/0.6157, allocations: 1.711 MB / 0.5855 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03507/0.6507, allocations: 6.122 MB / 0.5915 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01837/0.6691, allocations: 8.112 MB / 0.5994 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001095/0.6702, allocations: 0.8993 MB / 0.6003 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004641/0.6748, allocations: 1.203 MB / 0.6014 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0489/0.7237, allocations: 18.69 MB / 0.6197 GB, free: 376 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006502/0.7244, allocations: 23.89 kB / 0.6197 GB, free: 352 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.3705/1.095, allocations: 499.9 kB / 0.6202 GB, free: 149.4 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007923/1.096, allocations: 0.6437 MB / 0.6208 GB, free: 149.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03535/1.131, allocations: 16.8 MB / 0.6372 GB, free: 144.6 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09096/1.222, allocations: 58.99 MB / 0.6948 GB, free: 98.85 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/1.242, allocations: 32.81 MB / 0.7269 GB, free: 62.18 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005301/1.248, allocations: 3.413 MB / 0.7302 GB, free: 58.75 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.262, allocations: 8.885 MB / 0.7389 GB, free: 50 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/1.262, allocations: 69.31 kB / 0.7389 GB, free: 49.92 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.6e-06/1.262, allocations: 3.375 kB / 0.7389 GB, free: 49.92 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03355/1.296, allocations: 17.73 MB / 0.7563 GB, free: 32.55 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/1.296, allocations: 90.47 kB / 0.7563 GB, free: 32.45 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006983/1.303, allocations: 5.049 MB / 0.7613 GB, free: 27.47 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003764/1.303, allocations: 89.7 kB / 0.7614 GB, free: 27.38 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002201/1.306, allocations: 5.634 MB / 0.7669 GB, free: 21.79 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001008/1.307, allocations: 1.428 MB / 0.7682 GB, free: 20.38 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001878/1.309, allocations: 1.331 MB / 0.7695 GB, free: 19.04 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.444e-05/1.309, allocations: 305.1 kB / 0.7698 GB, free: 18.74 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/1.312, allocations: 2.91 MB / 0.7727 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/1.316, allocations: 5.883 MB / 0.7784 GB, free: 8.535 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00926/1.325, allocations: 9.452 MB / 0.7877 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-05/1.325, allocations: 32 kB / 0.7877 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0171/1.342, allocations: 9.866 MB / 0.7973 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.776e-05/1.343, allocations: 48 kB / 0.7974 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/1.343, allocations: 103.9 kB / 0.7975 GB, free: 3.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002608/1.345, allocations: 0.9366 MB / 0.7984 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005652/1.351, allocations: 1.587 MB / 0.7999 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.364, allocations: 10.19 MB / 0.8099 GB, free: 6.371 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005153/1.369, allocations: 407.5 kB / 0.8103 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.371, allocations: 360 kB / 0.8106 GB, free: 5.621 MB / 0.545 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.007705/1.378, allocations: 4.243 MB / 0.8148 GB, free: 1.363 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.38, allocations: 0.5395 MB / 0.8153 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/1.392, allocations: 6.462 MB / 0.8216 GB, free: 10.33 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.702e-05/1.392, allocations: 40 kB / 0.8216 GB, free: 10.29 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/1.392, allocations: 12 kB / 0.8217 GB, free: 10.28 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.846e-05/1.392, allocations: 19.92 kB / 0.8217 GB, free: 10.26 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2165/1.608, allocations: 15.71 MB / 0.837 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/1.608, allocations: 3.219 kB / 0.837 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003164/1.611, allocations: 0.7499 MB / 0.8378 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/1.614, allocations: 0.7843 MB / 0.8385 GB, free: 178 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003759/1.614, allocations: 95.5 kB / 0.8386 GB, free: 178 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009399/1.623, allocations: 9.345 MB / 0.8477 GB, free: 171.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.623, allocations: 4.562 kB / 0.8477 GB, free: 171.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/1.638, allocations: 9.523 MB / 0.857 GB, free: 167.9 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/1.64, allocations: 1.091 MB / 0.8581 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009328/1.641, allocations: 71.09 kB / 0.8582 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/1.643, allocations: 217.8 kB / 0.8584 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006586/1.644, allocations: 271.6 kB / 0.8586 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/1.644, allocations: 117 kB / 0.8587 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005149/1.649, allocations: 3.362 MB / 0.862 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.51e-07/1.649, allocations: 7 kB / 0.862 GB, free: 166.2 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00689/1.656, allocations: 1.883 MB / 0.8639 GB, free: 166 MB / 0.5607 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.01344/1.67, allocations: 10.25 MB / 0.8739 GB, free: 161.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.009593/1.679, allocations: 7.376 MB / 0.8811 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/1.679, allocations: 0 / 0.8811 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.004522/1.684, allocations: 3.322 MB / 0.8843 GB, free: 156.9 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00604/1.69, allocations: 1.31 MB / 0.8856 GB, free: 156 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08516/1.775, allocations: 65.11 MB / 0.9492 GB, free: 91.19 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006734/1.782, allocations: 7.335 MB / 0.9564 GB, free: 83.82 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004921/1.787, allocations: 2.152 MB / 0.9585 GB, free: 81.66 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005184/1.792, allocations: 4.346 MB / 0.9627 GB, free: 77.32 MB / 0.5607 GB Notification: Performance of SimCode: time 1.132e-06/1.792, allocations: 0 / 0.9627 GB, free: 77.32 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.109/2.901, allocations: 149.1 MB / 1.108 GB, free: 152.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.09/27.99, allocations: 6.594 kB / 1.108 GB, free: 152.5 MB / 0.5763 GB " [Timeout remaining time 632] (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/jenkins1/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/jenkins1/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 645] Reference file matches [Calling sys.exit(0), Time elapsed: 56.76992315199459]