Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.0008513/0.0008511, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.149/1.149, allocations: 205.4 MB / 222.9 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006646/0.0006647, allocations: 86.36 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 8 kB / 327.7 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02533/0.2118, allocations: 36.65 MB / 411.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01711/0.229, allocations: 10.31 MB / 422.2 MB, free: 1.613 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005532/0.2345, allocations: 251.1 kB / 422.4 MB, free: 1.367 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004507/0.239, allocations: 1.782 MB / 424.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009098/0.2482, allocations: 3.163 MB / 427.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004478/0.2526, allocations: 1.606 MB / 429 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01577/0.2684, allocations: 14.89 MB / 443.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03837/0.3068, allocations: 24.07 MB / 467.9 MB, free: 3.625 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007995/0.3149, allocations: 5.123 MB / 473.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00899/0.3239, allocations: 6.128 MB / 479.2 MB, free: 8.332 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002892/0.3268, allocations: 0.793 MB / 480 MB, free: 7.539 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004946/0.3318, allocations: 1.171 MB / 481.2 MB, free: 6.367 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003603/0.3354, allocations: 2.682 MB / 483.8 MB, free: 3.676 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009664/0.3451, allocations: 6.13 MB / 490 MB, free: 13.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3087/0.6538, allocations: 22.57 MB / 0.5005 GB, free: 37.96 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.6538, allocations: 3.875 kB / 0.5005 GB, free: 37.96 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6538, allocations: 2.438 kB / 0.5005 GB, free: 37.96 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.000592/0.6544, allocations: 3.375 kB / 0.5005 GB, free: 37.96 MB / 378.8 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.03059/0.685, allocations: 13.2 MB / 0.5134 GB, free: 31.45 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.6851, allocations: 9.719 kB / 0.5134 GB, free: 31.45 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005314/0.6904, allocations: 1.842 MB / 0.5152 GB, free: 31 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04374/0.7341, allocations: 9.215 MB / 0.5242 GB, free: 27.42 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.7484, allocations: 7.672 MB / 0.5317 GB, free: 25.32 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006565/0.749, allocations: 0.9843 MB / 0.5327 GB, free: 25.28 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00378/0.7528, allocations: 1.275 MB / 0.5339 GB, free: 24.64 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03982/0.7927, allocations: 20.42 MB / 0.5539 GB, free: 11.57 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003923/0.7931, allocations: 25.3 kB / 0.5539 GB, free: 11.55 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002737/0.7958, allocations: 0.5209 MB / 0.5544 GB, free: 11.44 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005504/0.7964, allocations: 0.742 MB / 0.5551 GB, free: 10.75 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03852/0.8349, allocations: 19.15 MB / 0.5738 GB, free: 11.84 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1052/0.9401, allocations: 65.25 MB / 0.6376 GB, free: 9.938 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2111/1.151, allocations: 57.22 MB / 0.6934 GB, free: 129 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006508/1.158, allocations: 4.187 MB / 0.6975 GB, free: 129 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01787/1.176, allocations: 11.68 MB / 0.7089 GB, free: 124.5 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/1.176, allocations: 70.84 kB / 0.709 GB, free: 124.4 MB / 474.8 MB Notification: Performance of pre-optimization done (n=361): time 5.912e-06/1.176, allocations: 0 / 0.709 GB, free: 124.4 MB / 474.8 MB Notification: Performance of matching and sorting (n=403): time 0.02992/1.206, allocations: 17.85 MB / 0.7264 GB, free: 116.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/1.206, allocations: 91.05 kB / 0.7265 GB, free: 116.8 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006327/1.212, allocations: 5.644 MB / 0.732 GB, free: 114.7 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003069/1.213, allocations: 88.64 kB / 0.7321 GB, free: 114.6 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002416/1.215, allocations: 6.053 MB / 0.738 GB, free: 110 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009702/1.216, allocations: 1.417 MB / 0.7394 GB, free: 109 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/1.216, allocations: 158.2 kB / 0.7395 GB, free: 108.8 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003106/1.217, allocations: 0.6184 MB / 0.7402 GB, free: 108.4 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/1.22, allocations: 3.125 MB / 0.7432 GB, free: 106.1 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00502/1.225, allocations: 6.859 MB / 0.7499 GB, free: 98.05 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009317/1.235, allocations: 10.78 MB / 0.7604 GB, free: 86.2 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.553e-05/1.235, allocations: 36 kB / 0.7605 GB, free: 86.16 MB / 474.8 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01426/1.249, allocations: 10.97 MB / 0.7712 GB, free: 75.82 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.289e-05/1.249, allocations: 60 kB / 0.7712 GB, free: 75.76 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.249, allocations: 128 kB / 0.7713 GB, free: 75.64 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002198/1.252, allocations: 0.9826 MB / 0.7723 GB, free: 74.64 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005207/1.257, allocations: 1.856 MB / 0.7741 GB, free: 72.79 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008728/1.266, allocations: 9.521 MB / 0.7834 GB, free: 62.86 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005176/1.271, allocations: 462.3 kB / 0.7839 GB, free: 62.41 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004968/1.271, allocations: 432 kB / 0.7843 GB, free: 61.99 MB / 474.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005957/1.277, allocations: 4.517 MB / 0.7887 GB, free: 57.46 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008962/1.278, allocations: 0.5711 MB / 0.7892 GB, free: 56.88 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009016/1.287, allocations: 6.692 MB / 0.7958 GB, free: 50.14 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/1.287, allocations: 40 kB / 0.7958 GB, free: 50.11 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/1.287, allocations: 8 kB / 0.7958 GB, free: 50.1 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/1.287, allocations: 19.92 kB / 0.7958 GB, free: 50.08 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0209/1.308, allocations: 16.46 MB / 0.8119 GB, free: 33.58 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.308, allocations: 4 kB / 0.8119 GB, free: 33.58 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.311, allocations: 0.7923 MB / 0.8127 GB, free: 32.79 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/1.313, allocations: 0.7885 MB / 0.8135 GB, free: 31.98 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/1.313, allocations: 91.97 kB / 0.8136 GB, free: 31.89 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007773/1.321, allocations: 8.645 MB / 0.822 GB, free: 22.85 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.321, allocations: 15.62 kB / 0.822 GB, free: 22.84 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.333, allocations: 9.787 MB / 0.8316 GB, free: 12.93 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002628/1.336, allocations: 1.15 MB / 0.8327 GB, free: 11.75 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/1.337, allocations: 79.92 kB / 0.8328 GB, free: 11.68 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003067/1.34, allocations: 231.7 kB / 0.833 GB, free: 11.45 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007085/1.341, allocations: 270.8 kB / 0.8332 GB, free: 11.18 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/1.341, allocations: 124 kB / 0.8334 GB, free: 11.06 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004775/1.346, allocations: 3.703 MB / 0.837 GB, free: 7.391 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.8e-07/1.346, allocations: 0 / 0.837 GB, free: 7.391 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006669/1.353, allocations: 2.039 MB / 0.839 GB, free: 5.352 MB / 474.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1897/1.542, allocations: 10.51 MB / 0.8492 GB, free: 151.9 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01189/1.554, allocations: 8.181 MB / 0.8572 GB, free: 149.6 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.554, allocations: 1.656 kB / 0.8572 GB, free: 149.6 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004538/1.559, allocations: 3.612 MB / 0.8608 GB, free: 147.9 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008406/1.567, allocations: 1.332 MB / 0.8621 GB, free: 147.5 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08653/1.654, allocations: 65.63 MB / 0.9261 GB, free: 95.53 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00555/1.659, allocations: 7.468 MB / 0.9334 GB, free: 89.81 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004746/1.664, allocations: 4.753 MB / 0.9381 GB, free: 85.39 MB / 474.8 MB Notification: Performance of SimCode: time 1.473e-06/1.664, allocations: 0 / 0.9381 GB, free: 85.39 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.72/12.39, allocations: 0.5174 GB / 1.455 GB, free: 75.86 MB / 474.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches