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.001392/0.001392, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001511/0.001511, allocations: 191 kB / 18.66 MB, free: 4.441 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.233/1.233, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001195/0.001195, allocations: 55.92 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07778/0.07898, allocations: 46.61 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1972/0.2762, allocations: 40.02 MB / 414.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02472/0.301, allocations: 10.55 MB / 425.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008816/0.3099, allocations: 269 kB / 425.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01947/0.3294, allocations: 8.541 MB / 434.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01314/0.3426, allocations: 3.637 MB / 437.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008442/0.351, allocations: 2.389 MB / 440.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01642/0.3674, allocations: 13.42 MB / 453.5 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03452/0.402, allocations: 25.36 MB / 478.9 MB, free: 7.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009742/0.4118, allocations: 7.059 MB / 485.9 MB, free: 276 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01114/0.423, allocations: 8.062 MB / 494 MB, free: 8.18 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004361/0.4273, allocations: 1.992 MB / 496 MB, free: 6.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006404/0.4338, allocations: 2.378 MB / 498.4 MB, free: 3.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005219/0.439, allocations: 4.146 MB / 0.4907 GB, free: 15.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01177/0.4508, allocations: 7.832 MB / 0.4984 GB, free: 7.789 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02696/0.4778, allocations: 26.42 MB / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4778, allocations: 0 / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4778, allocations: 7.875 kB / 0.5242 GB, free: 13.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006718/0.4785, allocations: 0 / 0.5242 GB, free: 13.29 MB / 462.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.04196/0.5205, allocations: 15.59 MB / 0.5394 GB, free: 13.57 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.5206, allocations: 8.031 kB / 0.5394 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005364/0.5259, allocations: 1.802 MB / 0.5412 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04776/0.5737, allocations: 9.114 MB / 0.5501 GB, free: 2.613 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.186/0.7597, allocations: 7.507 MB / 0.5574 GB, free: 134.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008713/0.7606, allocations: 0.9412 MB / 0.5583 GB, free: 134.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004314/0.765, allocations: 1.243 MB / 0.5595 GB, free: 134.1 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04363/0.8086, allocations: 20.15 MB / 0.5792 GB, free: 126.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004335/0.8091, allocations: 23.08 kB / 0.5792 GB, free: 126.2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003014/0.8121, allocations: 0.5176 MB / 0.5797 GB, free: 125.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006983/0.8128, allocations: 0.7351 MB / 0.5805 GB, free: 125.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03137/0.8442, allocations: 18.98 MB / 0.599 GB, free: 113.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07922/0.9235, allocations: 62.64 MB / 0.6602 GB, free: 50.04 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02712/0.9506, allocations: 56.99 MB / 0.7158 GB, free: 2.184 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006171/0.9568, allocations: 4.094 MB / 0.7198 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01791/0.9748, allocations: 11.34 MB / 0.7309 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.9748, allocations: 69.31 kB / 0.731 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=349): time 4.328e-06/0.9749, allocations: 0 / 0.731 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of matching and sorting (n=389): time 0.0335/1.008, allocations: 18.14 MB / 0.7487 GB, free: 380 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/1.008, allocations: 90.47 kB / 0.7488 GB, free: 276 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1842/1.193, allocations: 5.459 MB / 0.7541 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006439/1.193, allocations: 88.8 kB / 0.7542 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002979/1.196, allocations: 5.888 MB / 0.7599 GB, free: 167 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.198, allocations: 1.371 MB / 0.7613 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002475/1.2, allocations: 1.506 MB / 0.7627 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.514e-05/1.2, allocations: 303 kB / 0.763 GB, free: 164.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004975/1.205, allocations: 3.077 MB / 0.766 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00612/1.211, allocations: 6.76 MB / 0.7726 GB, free: 157.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/1.222, allocations: 10.59 MB / 0.783 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.436e-05/1.222, allocations: 35.81 kB / 0.783 GB, free: 149.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01543/1.238, allocations: 10.8 MB / 0.7936 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/1.238, allocations: 61.34 kB / 0.7936 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/1.238, allocations: 127.5 kB / 0.7937 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/1.24, allocations: 0.9726 MB / 0.7947 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005683/1.246, allocations: 1.814 MB / 0.7965 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009145/1.255, allocations: 10.24 MB / 0.8064 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004999/1.26, allocations: 447.1 kB / 0.8069 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006611/1.261, allocations: 417.4 kB / 0.8073 GB, free: 137.5 MB / 0.5137 GB 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.005739/1.266, allocations: 4.458 MB / 0.8116 GB, free: 135.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009521/1.267, allocations: 0.5438 MB / 0.8122 GB, free: 135 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008486/1.276, allocations: 6.517 MB / 0.8185 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/1.276, allocations: 45.05 kB / 0.8186 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/1.276, allocations: 8 kB / 0.8186 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.332e-05/1.276, allocations: 19.59 kB / 0.8186 GB, free: 129.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/1.296, allocations: 15.95 MB / 0.8342 GB, free: 116.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/1.296, allocations: 8.094 kB / 0.8342 GB, free: 116 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002954/1.299, allocations: 0.7489 MB / 0.8349 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/1.301, allocations: 0.7963 MB / 0.8357 GB, free: 114.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002293/1.301, allocations: 91.97 kB / 0.8358 GB, free: 114.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007635/1.309, allocations: 9.334 MB / 0.8449 GB, free: 104.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.309, allocations: 7.938 kB / 0.8449 GB, free: 104.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/1.32, allocations: 9.539 MB / 0.8542 GB, free: 95 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001935/1.322, allocations: 1.076 MB / 0.8553 GB, free: 93.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006931/1.322, allocations: 75.81 kB / 0.8553 GB, free: 93.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002126/1.324, allocations: 223.8 kB / 0.8555 GB, free: 93.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000426/1.325, allocations: 266.7 kB / 0.8558 GB, free: 93.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.325, allocations: 112 kB / 0.8559 GB, free: 93.24 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004252/1.329, allocations: 3.599 MB / 0.8594 GB, free: 89.66 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/1.329, allocations: 0 / 0.8594 GB, free: 89.66 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005949/1.335, allocations: 1.983 MB / 0.8614 GB, free: 87.68 MB / 0.5137 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%), (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.01121/1.347, allocations: 10.25 MB / 0.8714 GB, free: 77.32 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009823/1.356, allocations: 8.067 MB / 0.8792 GB, free: 69.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.356, allocations: 4 kB / 0.8792 GB, free: 69.19 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004025/1.36, allocations: 3.538 MB / 0.8827 GB, free: 65.57 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005087/1.366, allocations: 1.313 MB / 0.884 GB, free: 64.28 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2623/1.628, allocations: 70.19 MB / 0.9525 GB, free: 170.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01349/1.641, allocations: 7.593 MB / 0.9599 GB, free: 168.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006797/1.648, allocations: 2.355 MB / 0.9622 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006659/1.655, allocations: 4.518 MB / 0.9667 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.503e-06/1.655, allocations: 0 / 0.9667 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1933/1.848, allocations: 153.5 MB / 1.117 GB, free: 26.22 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.56/23.41, allocations: 4.875 kB / 1.117 GB, free: 26.22 MB / 0.5137 GB (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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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