Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.363/1.363, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 47.92 kB / 378.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.232, allocations: 53.36 MB / 432 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0437/0.2757, allocations: 40.34 MB / 472.3 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02173/0.2974, allocations: 10.69 MB / 483 MB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006894/0.3043, allocations: 373.9 kB / 483.4 MB, free: 3.258 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01955/0.3238, allocations: 8.66 MB / 492 MB, free: 10.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.3346, allocations: 3.575 MB / 495.6 MB, free: 6.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006535/0.3412, allocations: 2.421 MB / 498 MB, free: 4.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01718/0.3584, allocations: 13.04 MB / 0.4991 GB, free: 7.484 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02968/0.388, allocations: 17.38 MB / 0.5161 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.3986, allocations: 6.974 MB / 0.5229 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01271/0.4113, allocations: 7.931 MB / 0.5306 GB, free: 7.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004734/0.4161, allocations: 1.953 MB / 0.5325 GB, free: 5.051 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006292/0.4224, allocations: 2.378 MB / 0.5348 GB, free: 2.672 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3863/0.8087, allocations: 3.966 MB / 0.5387 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01405/0.8227, allocations: 7.563 MB / 0.5461 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02899/0.8517, allocations: 25.97 MB / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.8517, allocations: 0 / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.8517, allocations: 2.625 kB / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006789/0.8524, allocations: 0 / 0.5715 GB, free: 24.7 MB / 446.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.03983/0.8922, allocations: 15.26 MB / 0.5864 GB, free: 14.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.8923, allocations: 11.59 kB / 0.5864 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002281/0.8925, allocations: 329 kB / 0.5867 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004877/0.8974, allocations: 1.707 MB / 0.5884 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03087/0.9282, allocations: 6.134 MB / 0.5944 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0151/0.9434, allocations: 8.116 MB / 0.6023 GB, free: 5.301 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005686/0.9439, allocations: 0.9016 MB / 0.6032 GB, free: 4.406 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004213/0.9481, allocations: 1.197 MB / 0.6043 GB, free: 3.219 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04685/0.995, allocations: 18.69 MB / 0.6226 GB, free: 484 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004895/0.9955, allocations: 23.45 kB / 0.6226 GB, free: 464 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004137/0.9996, allocations: 0.5016 MB / 0.6231 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007277/1, allocations: 0.642 MB / 0.6237 GB, free: 15.34 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0382/1.039, allocations: 16.8 MB / 0.6401 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/1.156, allocations: 57.25 MB / 0.696 GB, free: 5.043 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/1.177, allocations: 10.37 MB / 0.7062 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007352/1.185, allocations: 3.405 MB / 0.7095 GB, free: 8.926 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02071/1.205, allocations: 8.547 MB / 0.7178 GB, free: 496 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.281e-05/1.205, allocations: 77.25 kB / 0.7179 GB, free: 408 kB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.592e-06/1.205, allocations: 4 kB / 0.7179 GB, free: 404 kB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04525/1.251, allocations: 17.28 MB / 0.7348 GB, free: 15.14 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/1.251, allocations: 94.47 kB / 0.7349 GB, free: 15.04 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/1.262, allocations: 5.05 MB / 0.7398 GB, free: 9.996 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008583/1.263, allocations: 85.7 kB / 0.7399 GB, free: 9.906 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005109/1.268, allocations: 5.636 MB / 0.7454 GB, free: 4.258 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002154/1.27, allocations: 1.419 MB / 0.7468 GB, free: 2.859 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004502/1.275, allocations: 1.331 MB / 0.7481 GB, free: 1.52 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001248/1.275, allocations: 305.1 kB / 0.7484 GB, free: 1.219 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2147/1.489, allocations: 2.909 MB / 0.7512 GB, free: 204.8 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006221/1.496, allocations: 5.882 MB / 0.7569 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/1.506, allocations: 9.458 MB / 0.7662 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/1.506, allocations: 28.88 kB / 0.7662 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01598/1.522, allocations: 9.866 MB / 0.7758 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.522, allocations: 47.34 kB / 0.7759 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/1.522, allocations: 104.2 kB / 0.776 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/1.525, allocations: 0.9381 MB / 0.7769 GB, free: 192.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005781/1.531, allocations: 1.586 MB / 0.7785 GB, free: 192.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.541, allocations: 9.893 MB / 0.7881 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/1.547, allocations: 411.2 kB / 0.7885 GB, free: 185.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/1.548, allocations: 360.5 kB / 0.7888 GB, free: 185.8 MB / 0.5763 GB 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.008034/1.556, allocations: 4.245 MB / 0.793 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/1.558, allocations: 0.5371 MB / 0.7935 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/1.569, allocations: 6.461 MB / 0.7998 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-05/1.569, allocations: 40 kB / 0.7999 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/1.569, allocations: 11.94 kB / 0.7999 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.707e-05/1.569, allocations: 26.62 kB / 0.7999 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02973/1.599, allocations: 15.74 MB / 0.8153 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.599, allocations: 7.094 kB / 0.8153 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003004/1.602, allocations: 0.7444 MB / 0.816 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/1.604, allocations: 0.7885 MB / 0.8168 GB, free: 164 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004133/1.604, allocations: 95.89 kB / 0.8169 GB, free: 164 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00849/1.613, allocations: 9.041 MB / 0.8257 GB, free: 154.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/1.613, allocations: 4.031 kB / 0.8257 GB, free: 154.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/1.628, allocations: 9.525 MB / 0.835 GB, free: 145.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003183/1.631, allocations: 1.032 MB / 0.836 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001495/1.632, allocations: 72.83 kB / 0.8361 GB, free: 144.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003297/1.636, allocations: 215.8 kB / 0.8363 GB, free: 144.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008466/1.636, allocations: 282.5 kB / 0.8366 GB, free: 143.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005228/1.637, allocations: 116 kB / 0.8367 GB, free: 143.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006289/1.643, allocations: 3.363 MB / 0.84 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/1.643, allocations: 0 / 0.84 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008149/1.651, allocations: 1.879 MB / 0.8418 GB, free: 138.5 MB / 0.5763 GB 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.01521/1.667, allocations: 10.26 MB / 0.8518 GB, free: 128.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01057/1.677, allocations: 7.216 MB / 0.8589 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.677, allocations: 4.875 kB / 0.8589 GB, free: 120.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004697/1.682, allocations: 3.178 MB / 0.862 GB, free: 117.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006508/1.688, allocations: 1.311 MB / 0.8632 GB, free: 116.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1098/1.798, allocations: 65.28 MB / 0.927 GB, free: 47.25 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01323/1.811, allocations: 7.329 MB / 0.9341 GB, free: 39.89 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006887/1.818, allocations: 2.156 MB / 0.9363 GB, free: 37.73 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007338/1.826, allocations: 4.346 MB / 0.9405 GB, free: 33.38 MB / 0.5763 GB Notification: Performance of SimCode: time 1.182e-06/1.826, allocations: 4 kB / 0.9405 GB, free: 33.38 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3876/2.213, allocations: 154.7 MB / 1.092 GB, free: 115 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.04/24.25, allocations: 19.3 kB / 1.092 GB, free: 115 MB / 0.5763 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 646] Reference file matches [Calling sys.exit(0), Time elapsed: 67.20316833094694]