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.SMR_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.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.0008443/0.0008443, allocations: 175.8 kB / 16.72 MB, free: 4.965 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.171/1.171, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0006953/0.0006953, allocations: 97.16 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 8 kB / 327.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1831, allocations: 47.56 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02425/0.2074, allocations: 35.12 MB / 410.3 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01676/0.2242, allocations: 9.814 MB / 420.1 MB, free: 3.633 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007175/0.2315, allocations: 247.1 kB / 420.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004762/0.2362, allocations: 1.666 MB / 422.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00854/0.2448, allocations: 3.029 MB / 425.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004667/0.2495, allocations: 1.564 MB / 426.6 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01655/0.266, allocations: 14.45 MB / 441.1 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03781/0.3039, allocations: 23.71 MB / 464.8 MB, free: 6.758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007814/0.3117, allocations: 4.983 MB / 469.8 MB, free: 1.758 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009172/0.321, allocations: 5.973 MB / 475.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002842/0.3238, allocations: 0.7734 MB / 476.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004843/0.3287, allocations: 1.148 MB / 477.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003756/0.3325, allocations: 2.628 MB / 480.3 MB, free: 7.203 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009495/0.342, allocations: 5.951 MB / 486.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.324/0.666, allocations: 22.11 MB / 0.4965 GB, free: 37.38 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.6661, allocations: 0 / 0.4965 GB, free: 37.38 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6661, allocations: 0 / 0.4965 GB, free: 37.38 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.000613/0.6667, allocations: 0 / 0.4965 GB, free: 37.38 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.02911/0.6958, allocations: 12.85 MB / 0.509 GB, free: 33.11 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.6959, allocations: 11.83 kB / 0.509 GB, free: 33.11 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005395/0.7013, allocations: 1.808 MB / 0.5108 GB, free: 32.66 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04324/0.7445, allocations: 9.133 MB / 0.5197 GB, free: 29.12 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01409/0.7587, allocations: 7.463 MB / 0.527 GB, free: 27.09 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007583/0.7595, allocations: 0.9583 MB / 0.5279 GB, free: 27.05 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003906/0.7634, allocations: 1.246 MB / 0.5291 GB, free: 27.04 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03653/0.7999, allocations: 20.06 MB / 0.5487 GB, free: 14.42 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002607/0.8002, allocations: 22.75 kB / 0.5488 GB, free: 14.41 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001518/0.8017, allocations: 0.5089 MB / 0.5492 GB, free: 14.3 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004803/0.8022, allocations: 0.7344 MB / 0.55 GB, free: 13.62 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02891/0.8311, allocations: 18.87 MB / 0.5684 GB, free: 15.08 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09019/0.9214, allocations: 63.62 MB / 0.6305 GB, free: 14.88 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1847/1.106, allocations: 56.91 MB / 0.6861 GB, free: 166.5 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00611/1.112, allocations: 4.11 MB / 0.6901 GB, free: 166.5 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/1.129, allocations: 11.41 MB / 0.7013 GB, free: 162.4 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/1.129, allocations: 72.19 kB / 0.7013 GB, free: 162.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 4.819e-06/1.129, allocations: 1 kB / 0.7013 GB, free: 162.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.02996/1.159, allocations: 18.13 MB / 0.719 GB, free: 154.8 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/1.16, allocations: 89.41 kB / 0.7191 GB, free: 154.8 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005522/1.165, allocations: 5.425 MB / 0.7244 GB, free: 152.8 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/1.165, allocations: 92.39 kB / 0.7245 GB, free: 152.7 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002045/1.167, allocations: 5.877 MB / 0.7302 GB, free: 148.2 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007072/1.168, allocations: 1.371 MB / 0.7316 GB, free: 147.2 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003167/1.168, allocations: 160.6 kB / 0.7317 GB, free: 147.1 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.000259/1.169, allocations: 0.6108 MB / 0.7323 GB, free: 146.6 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003516/1.172, allocations: 3.047 MB / 0.7353 GB, free: 144.6 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004391/1.177, allocations: 6.731 MB / 0.7419 GB, free: 136.7 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008352/1.185, allocations: 10.55 MB / 0.7522 GB, free: 125.1 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-05/1.185, allocations: 36 kB / 0.7522 GB, free: 125 MB / 490.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01288/1.198, allocations: 10.74 MB / 0.7627 GB, free: 114.5 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.513e-05/1.198, allocations: 56 kB / 0.7628 GB, free: 114.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.976e-05/1.198, allocations: 128 kB / 0.7629 GB, free: 114.3 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/1.2, allocations: 0.9702 MB / 0.7638 GB, free: 113.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/1.205, allocations: 1.817 MB / 0.7656 GB, free: 111.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008421/1.214, allocations: 9.548 MB / 0.7749 GB, free: 101.6 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00459/1.218, allocations: 447 kB / 0.7754 GB, free: 101.1 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004888/1.219, allocations: 416 kB / 0.7758 GB, free: 100.7 MB / 490.8 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 (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.005214/1.224, allocations: 4.453 MB / 0.7801 GB, free: 96.26 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007967/1.225, allocations: 0.5479 MB / 0.7806 GB, free: 95.71 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00871/1.233, allocations: 6.493 MB / 0.787 GB, free: 89.17 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/1.233, allocations: 40 kB / 0.787 GB, free: 89.13 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/1.233, allocations: 19.11 kB / 0.787 GB, free: 89.11 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.853e-05/1.233, allocations: 27.91 kB / 0.7871 GB, free: 89.09 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/1.253, allocations: 15.94 MB / 0.8026 GB, free: 73.11 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/1.253, allocations: 4 kB / 0.8026 GB, free: 73.11 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/1.256, allocations: 0.7567 MB / 0.8034 GB, free: 72.35 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001821/1.258, allocations: 0.7925 MB / 0.8042 GB, free: 71.54 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002189/1.258, allocations: 87.91 kB / 0.8042 GB, free: 71.45 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007462/1.266, allocations: 8.658 MB / 0.8127 GB, free: 62.4 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/1.266, allocations: 4 kB / 0.8127 GB, free: 62.39 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.277, allocations: 9.492 MB / 0.822 GB, free: 52.79 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001998/1.279, allocations: 1.103 MB / 0.823 GB, free: 51.66 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005795/1.279, allocations: 71.98 kB / 0.8231 GB, free: 51.59 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/1.281, allocations: 227.8 kB / 0.8233 GB, free: 51.37 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006579/1.282, allocations: 262.7 kB / 0.8236 GB, free: 51.11 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/1.282, allocations: 112 kB / 0.8237 GB, free: 51 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004351/1.287, allocations: 3.556 MB / 0.8272 GB, free: 47.47 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.71e-07/1.287, allocations: 0 / 0.8272 GB, free: 47.47 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.006082/1.293, allocations: 1.987 MB / 0.8291 GB, free: 45.49 MB / 490.8 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 (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.01106/1.304, allocations: 10.22 MB / 0.8391 GB, free: 35.16 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.009692/1.314, allocations: 8.011 MB / 0.8469 GB, free: 27.08 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/1.314, allocations: 4 kB / 0.8469 GB, free: 27.07 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003986/1.318, allocations: 3.524 MB / 0.8503 GB, free: 23.47 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007056/1.325, allocations: 1.234 MB / 0.8515 GB, free: 22.26 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2428/1.568, allocations: 63.01 MB / 0.9131 GB, free: 144.7 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01076/1.578, allocations: 7.375 MB / 0.9203 GB, free: 139.1 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006403/1.585, allocations: 4.577 MB / 0.9248 GB, free: 134.8 MB / 490.8 MB Notification: Performance of SimCode: time 1.112e-06/1.585, allocations: 0 / 0.9248 GB, free: 134.8 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.15/12.73, allocations: 0.5126 GB / 1.437 GB, free: 120.1 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches