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.001173/0.001173, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001199/0.001199, allocations: 198 kB / 18.07 MB, free: 5.41 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.337/1.337, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001069/0.001069, allocations: 47.94 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09918, allocations: 46.63 MB / 326.7 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0389/0.1381, allocations: 39.29 MB / 366 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02365/0.1618, allocations: 10.44 MB / 376.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01008/0.172, allocations: 247.1 kB / 376.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2219/0.394, allocations: 7.993 MB / 384.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.4054, allocations: 3.313 MB / 388 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006145/0.4116, allocations: 2.22 MB / 390.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01678/0.4284, allocations: 13.66 MB / 403.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02813/0.4565, allocations: 20.62 MB / 424.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0104/0.4669, allocations: 6.053 MB / 430.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01233/0.4793, allocations: 7.68 MB / 438.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004689/0.484, allocations: 1.312 MB / 439.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007737/0.4918, allocations: 1.709 MB / 441.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005104/0.4969, allocations: 3.447 MB / 444.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01448/0.5114, allocations: 7.097 MB / 451.8 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0253/0.5367, allocations: 25.77 MB / 477.6 MB, free: 7.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.515e-06/0.5368, allocations: 8 kB / 477.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5368, allocations: 0 / 477.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008482/0.5376, allocations: 0 / 477.6 MB, free: 7.414 MB / 382.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.04505/0.5827, allocations: 15.62 MB / 493.2 MB, free: 7.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.5828, allocations: 12.03 kB / 493.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005638/0.5884, allocations: 1.805 MB / 495 MB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0452/0.6337, allocations: 9.092 MB / 0.4923 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.6494, allocations: 7.452 MB / 0.4996 GB, free: 5.492 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009125/0.6503, allocations: 0.9498 MB / 0.5005 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00489/0.6553, allocations: 1.253 MB / 0.5017 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05013/0.7054, allocations: 20.15 MB / 0.5214 GB, free: 15.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004694/0.7059, allocations: 23.81 kB / 0.5214 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004199/0.7101, allocations: 0.5089 MB / 0.5219 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000734/0.7109, allocations: 0.7333 MB / 0.5226 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3669/1.078, allocations: 18.97 MB / 0.5412 GB, free: 136.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1003/1.178, allocations: 63.42 MB / 0.6031 GB, free: 93.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02818/1.206, allocations: 56.98 MB / 0.6587 GB, free: 33.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006224/1.213, allocations: 4.114 MB / 0.6628 GB, free: 29.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01998/1.233, allocations: 11.39 MB / 0.6739 GB, free: 17.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/1.233, allocations: 69.31 kB / 0.674 GB, free: 17.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.111e-06/1.233, allocations: 0 / 0.674 GB, free: 17.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03482/1.268, allocations: 18.13 MB / 0.6917 GB, free: 15.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/1.268, allocations: 94.47 kB / 0.6917 GB, free: 15.26 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/1.278, allocations: 5.462 MB / 0.6971 GB, free: 9.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007004/1.278, allocations: 89.7 kB / 0.6972 GB, free: 9.727 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004004/1.282, allocations: 5.882 MB / 0.7029 GB, free: 3.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001682/1.284, allocations: 1.369 MB / 0.7042 GB, free: 2.457 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003628/1.288, allocations: 1.508 MB / 0.7057 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.732e-05/1.288, allocations: 309.1 kB / 0.706 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1902/1.478, allocations: 3.078 MB / 0.709 GB, free: 147.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008546/1.487, allocations: 6.753 MB / 0.7156 GB, free: 142.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/1.501, allocations: 10.59 MB / 0.726 GB, free: 134.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002516/1.501, allocations: 35.75 kB / 0.726 GB, free: 134.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01837/1.519, allocations: 10.79 MB / 0.7365 GB, free: 130 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.147e-05/1.519, allocations: 58.52 kB / 0.7366 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.52, allocations: 130.6 kB / 0.7367 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/1.522, allocations: 0.9806 MB / 0.7377 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00604/1.528, allocations: 1.811 MB / 0.7394 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/1.538, allocations: 9.542 MB / 0.7488 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00695/1.545, allocations: 450 kB / 0.7492 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/1.547, allocations: 419.7 kB / 0.7496 GB, free: 123 MB / 462.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.009287/1.556, allocations: 4.445 MB / 0.7539 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/1.558, allocations: 0.5449 MB / 0.7545 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.57, allocations: 6.526 MB / 0.7608 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/1.57, allocations: 40 kB / 0.7609 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.523e-05/1.57, allocations: 8 kB / 0.7609 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/1.57, allocations: 19.12 kB / 0.7609 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03303/1.603, allocations: 15.97 MB / 0.7765 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/1.604, allocations: 0 / 0.7765 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003245/1.607, allocations: 0.757 MB / 0.7772 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/1.609, allocations: 0.7921 MB / 0.778 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005185/1.61, allocations: 82.75 kB / 0.7781 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008575/1.618, allocations: 8.661 MB / 0.7865 GB, free: 93.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.618, allocations: 4 kB / 0.7865 GB, free: 93.29 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01577/1.634, allocations: 9.525 MB / 0.7958 GB, free: 83.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003092/1.637, allocations: 1.071 MB / 0.7969 GB, free: 82.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00215/1.639, allocations: 75.98 kB / 0.797 GB, free: 82.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004194/1.644, allocations: 223.8 kB / 0.7972 GB, free: 82.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008959/1.644, allocations: 270.4 kB / 0.7974 GB, free: 82.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004759/1.645, allocations: 108 kB / 0.7975 GB, free: 82.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007752/1.653, allocations: 3.603 MB / 0.8011 GB, free: 78.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.02e-07/1.653, allocations: 3.75 kB / 0.8011 GB, free: 78.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009925/1.663, allocations: 1.993 MB / 0.803 GB, free: 76.63 MB / 462.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.01491/1.678, allocations: 10.23 MB / 0.813 GB, free: 66.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01274/1.69, allocations: 8.053 MB / 0.8209 GB, free: 58.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/1.69, allocations: 0 / 0.8209 GB, free: 58.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005001/1.695, allocations: 3.531 MB / 0.8243 GB, free: 54.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008076/1.704, allocations: 1.237 MB / 0.8255 GB, free: 53.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3468/2.05, allocations: 93.01 MB / 0.9164 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008418/2.059, allocations: 7.594 MB / 0.9238 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006409/2.065, allocations: 2.35 MB / 0.9261 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005374/2.071, allocations: 4.52 MB / 0.9305 GB, free: 106 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/2.071, allocations: 0 / 0.9305 GB, free: 106 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3832/2.454, allocations: 152.8 MB / 1.08 GB, free: 133 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/2.454, allocations: 289.6 kB / 1.08 GB, free: 132.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.287/7.741, allocations: 4.766 kB / 1.08 GB, free: 132.7 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