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.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 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.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.001104/0.001104, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.0009815/0.0009817, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.252/1.252, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 50.98 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07455/0.07588, allocations: 49.45 MB / 349.5 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1653/0.2412, allocations: 38.71 MB / 388.2 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.2592, allocations: 10.29 MB / 398.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007043/0.2663, allocations: 292.2 kB / 398.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01672/0.2831, allocations: 7.989 MB / 406.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009324/0.2924, allocations: 3.088 MB / 409.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005627/0.298, allocations: 2.156 MB / 412.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01259/0.3106, allocations: 12.93 MB / 425 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02923/0.3399, allocations: 20.57 MB / 445.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008764/0.3487, allocations: 5.868 MB / 451.4 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01181/0.3605, allocations: 7.364 MB / 458.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004356/0.3649, allocations: 1.301 MB / 460.1 MB, free: 7.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006428/0.3714, allocations: 1.691 MB / 461.8 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004761/0.3761, allocations: 3.279 MB / 465 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01118/0.3873, allocations: 6.872 MB / 471.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02268/0.41, allocations: 25.23 MB / 497.2 MB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.4101, allocations: 0 / 497.2 MB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4101, allocations: 0 / 497.2 MB, free: 2.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004406/0.4105, allocations: 0 / 497.2 MB, free: 2.215 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03648/0.447, allocations: 15.03 MB / 0.5002 GB, free: 3.062 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.4471, allocations: 12.03 kB / 0.5002 GB, free: 3.051 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002938/0.45, allocations: 1.711 MB / 0.5019 GB, free: 1.328 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03205/0.4821, allocations: 6.132 MB / 0.5079 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/0.4964, allocations: 7.792 MB / 0.5155 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006866/0.4971, allocations: 0.9072 MB / 0.5163 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002815/0.4999, allocations: 1.203 MB / 0.5175 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.368/0.8679, allocations: 18.65 MB / 0.5357 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004241/0.8684, allocations: 20.39 kB / 0.5358 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003073/0.8715, allocations: 0.494 MB / 0.5362 GB, free: 109 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007063/0.8722, allocations: 0.6378 MB / 0.5369 GB, free: 108.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03893/0.9111, allocations: 16.76 MB / 0.5532 GB, free: 101.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09168/1.003, allocations: 58.86 MB / 0.6107 GB, free: 43.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/1.021, allocations: 32.87 MB / 0.6428 GB, free: 6.242 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005213/1.026, allocations: 3.734 MB / 0.6465 GB, free: 2.504 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01435/1.041, allocations: 8.664 MB / 0.6549 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/1.041, allocations: 65.31 kB / 0.655 GB, free: 9.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.339e-06/1.041, allocations: 3.938 kB / 0.655 GB, free: 9.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03696/1.078, allocations: 17.56 MB / 0.6721 GB, free: 8.066 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/1.078, allocations: 94.41 kB / 0.6722 GB, free: 7.961 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008556/1.086, allocations: 5.016 MB / 0.6771 GB, free: 2.949 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007968/1.087, allocations: 89.7 kB / 0.6772 GB, free: 2.855 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005219/1.093, allocations: 5.439 MB / 0.6825 GB, free: 13.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/1.095, allocations: 1.355 MB / 0.6838 GB, free: 12.04 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002165/1.097, allocations: 1.322 MB / 0.6851 GB, free: 10.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.097, allocations: 301.1 kB / 0.6854 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/1.102, allocations: 2.902 MB / 0.6883 GB, free: 7.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006848/1.109, allocations: 5.879 MB / 0.694 GB, free: 228 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2699/1.378, allocations: 9.437 MB / 0.7032 GB, free: 138.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.144e-05/1.379, allocations: 32.69 kB / 0.7032 GB, free: 138.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01744/1.396, allocations: 9.838 MB / 0.7129 GB, free: 134.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-05/1.396, allocations: 51.88 kB / 0.7129 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/1.396, allocations: 98.34 kB / 0.713 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002494/1.399, allocations: 0.941 MB / 0.7139 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005427/1.404, allocations: 1.575 MB / 0.7155 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009857/1.414, allocations: 9.484 MB / 0.7247 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005417/1.42, allocations: 408.8 kB / 0.7251 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/1.421, allocations: 356.6 kB / 0.7254 GB, free: 127.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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.006791/1.427, allocations: 4.243 MB / 0.7296 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.429, allocations: 0.5224 MB / 0.7301 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00996/1.438, allocations: 6.474 MB / 0.7364 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/1.439, allocations: 41.69 kB / 0.7365 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/1.439, allocations: 11.75 kB / 0.7365 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-05/1.439, allocations: 23.16 kB / 0.7365 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02199/1.461, allocations: 15.72 MB / 0.7518 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/1.461, allocations: 3.344 kB / 0.7518 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002906/1.464, allocations: 0.7454 MB / 0.7526 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/1.465, allocations: 0.7893 MB / 0.7533 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/1.466, allocations: 83.41 kB / 0.7534 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007839/1.474, allocations: 8.669 MB / 0.7619 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.474, allocations: 4 kB / 0.7619 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/1.485, allocations: 9.499 MB / 0.7712 GB, free: 98.12 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/1.487, allocations: 1.056 MB / 0.7722 GB, free: 97.11 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/1.487, allocations: 75.84 kB / 0.7723 GB, free: 97.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/1.49, allocations: 223.8 kB / 0.7725 GB, free: 96.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005143/1.49, allocations: 258.8 kB / 0.7727 GB, free: 96.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/1.49, allocations: 116 kB / 0.7728 GB, free: 96.45 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00394/1.494, allocations: 3.354 MB / 0.7761 GB, free: 93.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.494, allocations: 3.938 kB / 0.7761 GB, free: 93.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005804/1.5, allocations: 1.875 MB / 0.778 GB, free: 91.23 MB / 478.1 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 (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,59.4%), (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.01196/1.512, allocations: 10.21 MB / 0.7879 GB, free: 80.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.522, allocations: 7.648 MB / 0.7954 GB, free: 73.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.522, allocations: 4.938 kB / 0.7954 GB, free: 73.18 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004449/1.527, allocations: 3.551 MB / 0.7989 GB, free: 69.55 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005588/1.532, allocations: 1.209 MB / 0.8001 GB, free: 68.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.322/1.854, allocations: 85.39 MB / 0.8834 GB, free: 158.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009872/1.864, allocations: 7.329 MB / 0.8906 GB, free: 155.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006593/1.871, allocations: 2.143 MB / 0.8927 GB, free: 155.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00497/1.876, allocations: 4.336 MB / 0.8969 GB, free: 152 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/1.876, allocations: 0 / 0.8969 GB, free: 152 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.184/2.06, allocations: 146.6 MB / 1.04 GB, free: 16.21 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/2.06, allocations: 300.7 kB / 1.04 GB, free: 15.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.83/6.89, allocations: 3.938 kB / 1.04 GB, free: 15.82 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches