Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.001325/0.001325, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001458/0.001458, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008933/0.0008934, allocations: 43.09 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07173/0.07265, allocations: 49.45 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1657/0.2384, allocations: 41.15 MB / 391.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.2583, allocations: 10.96 MB / 402.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007986/0.2663, allocations: 310.8 kB / 402.6 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01818/0.2845, allocations: 8.756 MB / 411.4 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.2954, allocations: 3.568 MB / 414.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005517/0.3009, allocations: 2.406 MB / 417.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01271/0.3136, allocations: 13.23 MB / 430.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02878/0.3424, allocations: 25.7 MB / 456.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009154/0.3516, allocations: 6.946 MB / 463.2 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0116/0.3632, allocations: 7.934 MB / 471.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005739/0.369, allocations: 1.992 MB / 473.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007594/0.3766, allocations: 2.39 MB / 475.5 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007358/0.384, allocations: 4.037 MB / 479.6 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01089/0.395, allocations: 7.766 MB / 487.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02706/0.422, allocations: 26.28 MB / 0.5016 GB, free: 2.043 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4221, allocations: 0 / 0.5016 GB, free: 2.043 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.4221, allocations: 0 / 0.5016 GB, free: 2.043 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006454/0.4227, allocations: 0 / 0.5016 GB, free: 2.043 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04192/0.4647, allocations: 15.46 MB / 0.5167 GB, free: 2.465 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.4647, allocations: 12.03 kB / 0.5167 GB, free: 2.453 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005346/0.4701, allocations: 1.748 MB / 0.5184 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2822/0.7523, allocations: 6.206 MB / 0.5245 GB, free: 120.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/0.7654, allocations: 8.021 MB / 0.5323 GB, free: 116.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006088/0.766, allocations: 0.936 MB / 0.5332 GB, free: 116.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00276/0.7688, allocations: 1.23 MB / 0.5344 GB, free: 115.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03458/0.8034, allocations: 19.02 MB / 0.553 GB, free: 104.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004481/0.8038, allocations: 25.42 kB / 0.553 GB, free: 104.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002807/0.8067, allocations: 0.5033 MB / 0.5535 GB, free: 103.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000437/0.8071, allocations: 0.6544 MB / 0.5541 GB, free: 103 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02896/0.8361, allocations: 17.03 MB / 0.5708 GB, free: 85.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07091/0.907, allocations: 60.51 MB / 0.6298 GB, free: 24.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01876/0.9258, allocations: 33.15 MB / 0.6622 GB, free: 3.328 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005204/0.931, allocations: 3.813 MB / 0.6659 GB, free: 15.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.9451, allocations: 8.9 MB / 0.6746 GB, free: 6.617 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.9452, allocations: 73.34 kB / 0.6747 GB, free: 6.535 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 4.479e-06/0.9452, allocations: 8 kB / 0.6747 GB, free: 6.527 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.0329/0.9781, allocations: 17.76 MB / 0.6921 GB, free: 4.648 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.9782, allocations: 90.58 kB / 0.6922 GB, free: 4.547 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1713/1.149, allocations: 5.231 MB / 0.6973 GB, free: 152.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006263/1.15, allocations: 92.7 kB / 0.6973 GB, free: 152.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002972/1.153, allocations: 5.62 MB / 0.7028 GB, free: 149.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.154, allocations: 1.401 MB / 0.7042 GB, free: 148.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001758/1.156, allocations: 1.352 MB / 0.7055 GB, free: 147.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.624e-05/1.156, allocations: 308.1 kB / 0.7058 GB, free: 147.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004126/1.16, allocations: 2.969 MB / 0.7087 GB, free: 146.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005025/1.165, allocations: 6.01 MB / 0.7146 GB, free: 141.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009008/1.174, allocations: 9.666 MB / 0.724 GB, free: 134.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-05/1.174, allocations: 29.69 kB / 0.7241 GB, free: 134.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.0136/1.188, allocations: 10.08 MB / 0.7339 GB, free: 129.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.116e-05/1.188, allocations: 50.19 kB / 0.7339 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001377/1.188, allocations: 101.9 kB / 0.734 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002104/1.19, allocations: 0.9668 MB / 0.735 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004943/1.195, allocations: 1.627 MB / 0.7366 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009157/1.204, allocations: 10.21 MB / 0.7465 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004868/1.209, allocations: 411.4 kB / 0.7469 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004727/1.21, allocations: 364.2 kB / 0.7473 GB, free: 122.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.004897/1.215, allocations: 4.296 MB / 0.7515 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008307/1.215, allocations: 0.5466 MB / 0.752 GB, free: 119.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008587/1.224, allocations: 6.664 MB / 0.7585 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/1.224, allocations: 40 kB / 0.7586 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.224, allocations: 12 kB / 0.7586 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.99e-05/1.224, allocations: 22.36 kB / 0.7586 GB, free: 115.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/1.244, allocations: 16.25 MB / 0.7745 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/1.244, allocations: 4 kB / 0.7745 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002847/1.247, allocations: 0.7684 MB / 0.7752 GB, free: 99.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/1.249, allocations: 0.8044 MB / 0.776 GB, free: 98.45 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002214/1.249, allocations: 83.98 kB / 0.7761 GB, free: 98.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007572/1.257, allocations: 9.359 MB / 0.7852 GB, free: 88.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.257, allocations: 7.984 kB / 0.7852 GB, free: 88.59 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/1.267, allocations: 9.793 MB / 0.7948 GB, free: 78.68 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/1.269, allocations: 1.092 MB / 0.7959 GB, free: 77.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006005/1.27, allocations: 85.02 kB / 0.7959 GB, free: 77.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/1.272, allocations: 223.8 kB / 0.7962 GB, free: 77.27 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004354/1.272, allocations: 278.8 kB / 0.7964 GB, free: 76.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002021/1.273, allocations: 112 kB / 0.7965 GB, free: 76.88 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003731/1.276, allocations: 3.501 MB / 0.7999 GB, free: 73.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.276, allocations: 0 / 0.7999 GB, free: 73.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005088/1.281, allocations: 1.933 MB / 0.8018 GB, free: 71.47 MB / 478.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%), (8,38,62.5%), (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.01078/1.292, allocations: 10.53 MB / 0.8121 GB, free: 60.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02379/1.316, allocations: 13.47 MB / 0.8253 GB, free: 47.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.316, allocations: 0 / 0.8253 GB, free: 47.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004008/1.32, allocations: 3.622 MB / 0.8288 GB, free: 43.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005561/1.326, allocations: 1.391 MB / 0.8302 GB, free: 42.28 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2455/1.571, allocations: 84.63 MB / 0.9128 GB, free: 134 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006365/1.578, allocations: 7.421 MB / 0.9201 GB, free: 131.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005428/1.583, allocations: 2.188 MB / 0.9222 GB, free: 130.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004202/1.587, allocations: 4.501 MB / 0.9266 GB, free: 126.3 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/1.587, allocations: 0 / 0.9266 GB, free: 126.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.315/5.902, allocations: 155.9 MB / 1.079 GB, free: 140.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/21.96, allocations: 6.438 kB / 1.079 GB, free: 140.8 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches