Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009064, allocations: 96.86 kB / 17.3 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 177.1 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004028/0.0004029, allocations: 12.88 kB / 281.5 MB, free: 3.281 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07166/0.07207, allocations: 47.57 MB / 329.1 MB, free: 3.637 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03347/0.1056, allocations: 37.74 MB / 366.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01892/0.1245, allocations: 10.36 MB / 377.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006005/0.1306, allocations: 247.1 kB / 377.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005815/0.1364, allocations: 2.142 MB / 379.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1431/0.2795, allocations: 3.287 MB / 382.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005138/0.2847, allocations: 2.011 MB / 384.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01338/0.2981, allocations: 13.64 MB / 398.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02722/0.3253, allocations: 24.16 MB / 422.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006599/0.3319, allocations: 4.941 MB / 427.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008049/0.34, allocations: 6.234 MB / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.3411, allocations: 0.7734 MB / 434.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00263/0.3437, allocations: 1.156 MB / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001907/0.3457, allocations: 2.681 MB / 438.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005496/0.3512, allocations: 6.214 MB / 444.7 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01892/0.3701, allocations: 24.78 MB / 469.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3701, allocations: 0 / 469.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3701, allocations: 0 / 469.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004276/0.3706, allocations: 4 kB / 469.4 MB, free: 1.145 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02771/0.3983, allocations: 12.85 MB / 482.3 MB, free: 4.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.3983, allocations: 16.02 kB / 482.3 MB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003409/0.4018, allocations: 1.799 MB / 484.1 MB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04567/0.4474, allocations: 9.133 MB / 493.2 MB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01479/0.4623, allocations: 7.471 MB / 0.489 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009212/0.4632, allocations: 0.9446 MB / 0.4899 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003702/0.4669, allocations: 1.247 MB / 0.4911 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03362/0.5006, allocations: 20.15 MB / 0.5108 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002481/0.5008, allocations: 23.8 kB / 0.5108 GB, free: 11.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001225/0.5021, allocations: 0.5197 MB / 0.5113 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006132/0.5027, allocations: 0.7333 MB / 0.512 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02939/0.5321, allocations: 18.98 MB / 0.5306 GB, free: 7.297 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3342/0.8663, allocations: 63.62 MB / 0.5927 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02539/0.8917, allocations: 56.94 MB / 0.6483 GB, free: 43.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005147/0.8969, allocations: 4.127 MB / 0.6523 GB, free: 40.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01415/0.911, allocations: 11.4 MB / 0.6635 GB, free: 29.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.9111, allocations: 73.25 kB / 0.6635 GB, free: 29.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.849e-06/0.9111, allocations: 3.938 kB / 0.6635 GB, free: 29.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03065/0.9418, allocations: 18.18 MB / 0.6813 GB, free: 10.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.9418, allocations: 98.47 kB / 0.6814 GB, free: 10.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/0.948, allocations: 5.458 MB / 0.6867 GB, free: 5.316 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004539/0.9485, allocations: 89.7 kB / 0.6868 GB, free: 5.223 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002341/0.9509, allocations: 5.885 MB / 0.6926 GB, free: 15.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/0.9522, allocations: 1.37 MB / 0.6939 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007466/0.9529, allocations: 0.5927 MB / 0.6945 GB, free: 13.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.222e-05/0.953, allocations: 301.1 kB / 0.6948 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004618/0.9576, allocations: 3.083 MB / 0.6978 GB, free: 9.965 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007183/0.9648, allocations: 6.762 MB / 0.7044 GB, free: 1.434 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/0.9777, allocations: 10.59 MB / 0.7147 GB, free: 5.035 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.674e-05/0.9778, allocations: 39.98 kB / 0.7148 GB, free: 4.996 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.1746/1.152, allocations: 10.79 MB / 0.7253 GB, free: 156.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.647e-05/1.153, allocations: 58.53 kB / 0.7254 GB, free: 156.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/1.153, allocations: 125.9 kB / 0.7255 GB, free: 156.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/1.155, allocations: 0.9726 MB / 0.7264 GB, free: 156.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006043/1.161, allocations: 1.816 MB / 0.7282 GB, free: 156.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009433/1.171, allocations: 9.557 MB / 0.7375 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/1.176, allocations: 440.1 kB / 0.7379 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007986/1.177, allocations: 423.4 kB / 0.7384 GB, free: 151.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00608/1.183, allocations: 4.452 MB / 0.7427 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009455/1.184, allocations: 0.5456 MB / 0.7432 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008926/1.193, allocations: 6.521 MB / 0.7496 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/1.193, allocations: 39.56 kB / 0.7496 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/1.193, allocations: 8.219 kB / 0.7496 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.923e-05/1.193, allocations: 23.98 kB / 0.7497 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/1.214, allocations: 15.97 MB / 0.7653 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/1.214, allocations: 3.156 kB / 0.7653 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.216, allocations: 0.7521 MB / 0.766 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/1.218, allocations: 0.7979 MB / 0.7668 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000232/1.219, allocations: 87.16 kB / 0.7669 GB, free: 140.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007499/1.226, allocations: 8.67 MB / 0.7753 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.226, allocations: 4 kB / 0.7753 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.238, allocations: 9.533 MB / 0.7846 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/1.24, allocations: 1.103 MB / 0.7857 GB, free: 121.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007324/1.241, allocations: 72 kB / 0.7858 GB, free: 121.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/1.243, allocations: 227.1 kB / 0.786 GB, free: 121.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004757/1.243, allocations: 262.7 kB / 0.7863 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002111/1.244, allocations: 116 kB / 0.7864 GB, free: 121.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004373/1.248, allocations: 3.599 MB / 0.7899 GB, free: 117.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.248, allocations: 0 / 0.7899 GB, free: 117.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006107/1.254, allocations: 1.985 MB / 0.7918 GB, free: 115.5 MB / 478.1 MB 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01163/1.266, allocations: 10.26 MB / 0.8018 GB, free: 105.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01021/1.276, allocations: 8.056 MB / 0.8097 GB, free: 97.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.276, allocations: 0 / 0.8097 GB, free: 97.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004427/1.281, allocations: 3.538 MB / 0.8132 GB, free: 93.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007368/1.288, allocations: 1.24 MB / 0.8144 GB, free: 92.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.269/1.557, allocations: 93.13 MB / 0.9053 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008224/1.565, allocations: 7.59 MB / 0.9127 GB, free: 150.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006325/1.572, allocations: 2.354 MB / 0.915 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005227/1.577, allocations: 4.52 MB / 0.9194 GB, free: 146.6 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/1.577, allocations: 0 / 0.9194 GB, free: 146.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.068/2.645, allocations: 151 MB / 1.067 GB, free: 111.5 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/2.645, allocations: 291.5 kB / 1.067 GB, free: 111.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.929/7.574, allocations: 0 / 1.067 GB, free: 111.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches