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.SMPM_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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.00122/0.00122, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001219/0.001219, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.397/1.397, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001217/0.001217, allocations: 52.14 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08678, allocations: 46.62 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04311/0.13, allocations: 41.76 MB / 369.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1914/0.3214, allocations: 11.08 MB / 380.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007172/0.3286, allocations: 265.9 kB / 380.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01968/0.3483, allocations: 8.79 MB / 389.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01217/0.3605, allocations: 3.791 MB / 393.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007453/0.368, allocations: 2.456 MB / 395.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01908/0.3871, allocations: 13.79 MB / 409.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04084/0.4279, allocations: 25.89 MB / 435.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01301/0.441, allocations: 7.185 MB / 442.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01391/0.455, allocations: 8.261 MB / 450.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006683/0.4617, allocations: 2.031 MB / 452.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01158/0.4733, allocations: 2.428 MB / 455.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007327/0.4807, allocations: 4.239 MB / 459.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01558/0.4963, allocations: 8.041 MB / 467.4 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03242/0.5288, allocations: 26.82 MB / 494.2 MB, free: 7.445 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.5288, allocations: 3.938 kB / 494.2 MB, free: 7.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5288, allocations: 0 / 494.2 MB, free: 7.441 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008977/0.5297, allocations: 0 / 494.2 MB, free: 7.441 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05443/0.5842, allocations: 16.07 MB / 0.4983 GB, free: 7.371 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5843, allocations: 8.031 kB / 0.4983 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007826/0.5921, allocations: 1.84 MB / 0.5001 GB, free: 5.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05269/0.6448, allocations: 9.173 MB / 0.5091 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/0.6627, allocations: 7.684 MB / 0.5166 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009962/0.6637, allocations: 0.9735 MB / 0.5175 GB, free: 3.777 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005319/0.669, allocations: 1.277 MB / 0.5188 GB, free: 2.516 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2547/0.9238, allocations: 20.51 MB / 0.5388 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006847/0.9245, allocations: 22.2 kB / 0.5388 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00345/0.928, allocations: 0.5237 MB / 0.5393 GB, free: 135.9 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/0.9293, allocations: 0.7441 MB / 0.5401 GB, free: 135.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03998/0.9693, allocations: 19.24 MB / 0.5589 GB, free: 129.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/1.075, allocations: 65.05 MB / 0.6224 GB, free: 78.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03244/1.108, allocations: 57.29 MB / 0.6783 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006632/1.114, allocations: 4.196 MB / 0.6824 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01998/1.134, allocations: 11.67 MB / 0.6938 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.365e-05/1.134, allocations: 69.41 kB / 0.6939 GB, free: 14.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 6.111e-06/1.134, allocations: 0 / 0.6939 GB, free: 14.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.2584/1.393, allocations: 17.86 MB / 0.7113 GB, free: 147.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/1.393, allocations: 93.89 kB / 0.7114 GB, free: 147.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/1.404, allocations: 5.688 MB / 0.717 GB, free: 145.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008495/1.405, allocations: 90.58 kB / 0.7171 GB, free: 145.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003605/1.408, allocations: 6.056 MB / 0.723 GB, free: 142.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00155/1.41, allocations: 1.424 MB / 0.7244 GB, free: 141.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002111/1.412, allocations: 1.542 MB / 0.7259 GB, free: 140.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.426e-05/1.412, allocations: 301.1 kB / 0.7262 GB, free: 140 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004531/1.417, allocations: 3.146 MB / 0.7292 GB, free: 138.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00576/1.422, allocations: 6.901 MB / 0.736 GB, free: 132.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.433, allocations: 10.8 MB / 0.7465 GB, free: 124.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/1.433, allocations: 39.5 kB / 0.7466 GB, free: 124.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01997/1.453, allocations: 11.03 MB / 0.7573 GB, free: 119.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.395e-05/1.453, allocations: 58.91 kB / 0.7574 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/1.454, allocations: 126.2 kB / 0.7575 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/1.456, allocations: 0.9907 MB / 0.7585 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006119/1.462, allocations: 1.855 MB / 0.7603 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/1.473, allocations: 10.26 MB / 0.7703 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008517/1.482, allocations: 455.5 kB / 0.7707 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001747/1.484, allocations: 427.9 kB / 0.7712 GB, free: 112.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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.009418/1.493, allocations: 4.516 MB / 0.7756 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00207/1.495, allocations: 0.573 MB / 0.7761 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/1.509, allocations: 6.702 MB / 0.7827 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/1.509, allocations: 40 kB / 0.7827 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-05/1.509, allocations: 8 kB / 0.7827 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.475e-05/1.509, allocations: 21.05 kB / 0.7827 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03693/1.546, allocations: 16.5 MB / 0.7988 GB, free: 86.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.919e-05/1.546, allocations: 8.094 kB / 0.7989 GB, free: 86.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00349/1.549, allocations: 0.7723 MB / 0.7996 GB, free: 85.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002185/1.551, allocations: 0.8002 MB / 0.8004 GB, free: 84.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005882/1.552, allocations: 91.97 kB / 0.8005 GB, free: 84.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009176/1.561, allocations: 9.345 MB / 0.8096 GB, free: 75.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.561, allocations: 8.062 kB / 0.8096 GB, free: 75.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/1.577, allocations: 9.817 MB / 0.8192 GB, free: 65.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003578/1.581, allocations: 1.122 MB / 0.8203 GB, free: 63.97 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001966/1.583, allocations: 75.94 kB / 0.8204 GB, free: 63.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003694/1.587, allocations: 225 kB / 0.8206 GB, free: 63.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000872/1.588, allocations: 274.8 kB / 0.8208 GB, free: 63.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004634/1.588, allocations: 124 kB / 0.821 GB, free: 63.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007805/1.596, allocations: 3.742 MB / 0.8246 GB, free: 59.58 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.596, allocations: 0 / 0.8246 GB, free: 59.58 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01167/1.608, allocations: 2.046 MB / 0.8266 GB, free: 57.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.0185/1.626, allocations: 10.55 MB / 0.8369 GB, free: 46.87 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03017/1.657, allocations: 13.87 MB / 0.8505 GB, free: 32.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.657, allocations: 4 kB / 0.8505 GB, free: 32.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006491/1.663, allocations: 3.622 MB / 0.854 GB, free: 29.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01037/1.673, allocations: 1.418 MB / 0.8554 GB, free: 27.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3062/1.98, allocations: 92.19 MB / 0.9454 GB, free: 101.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/1.992, allocations: 7.702 MB / 0.9529 GB, free: 95.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007859/2, allocations: 2.399 MB / 0.9553 GB, free: 93.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007428/2.007, allocations: 4.698 MB / 0.9599 GB, free: 88.43 MB / 462.1 MB Notification: Performance of SimCode: time 2.124e-06/2.007, allocations: 4 kB / 0.9599 GB, free: 88.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3594/2.367, allocations: 162.2 MB / 1.118 GB, free: 92.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/14.87, allocations: 8.375 kB / 1.118 GB, free: 92.15 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches