Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.002003/0.002003, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001904/0.001904, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.404/1.404, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 48.06 kB / 378.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2586, allocations: 53.36 MB / 431.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01845/0.277, allocations: 15.02 MB / 446.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.2878, allocations: 5.383 MB / 452.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.2907, allocations: 131.2 kB / 452.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004084/0.2947, allocations: 1.258 MB / 453.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005986/0.3007, allocations: 1.627 MB / 455.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.304, allocations: 1.087 MB / 456.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008281/0.3123, allocations: 5.229 MB / 461.6 MB, free: 8.766 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004969/0.3173, allocations: 2.309 MB / 463.9 MB, free: 6.371 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003877/0.3211, allocations: 2.251 MB / 466.2 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004534/0.3257, allocations: 2.674 MB / 468.9 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001553/0.3272, allocations: 0.6133 MB / 469.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.3298, allocations: 0.8513 MB / 470.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001897/0.3317, allocations: 1.433 MB / 471.8 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004484/0.3362, allocations: 2.101 MB / 473.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0119/0.3481, allocations: 8.202 MB / 482.1 MB, free: 4.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3481, allocations: 0 / 482.1 MB, free: 4.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3481, allocations: 4 kB / 482.1 MB, free: 4.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002439/0.3483, allocations: 0 / 482.1 MB, free: 4.184 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01595/0.3643, allocations: 5.456 MB / 487.5 MB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.3643, allocations: 8.031 kB / 487.5 MB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001837/0.3645, allocations: 131.7 kB / 487.7 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001309/0.3658, allocations: 0.6105 MB / 488.3 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005528/0.3714, allocations: 1.013 MB / 489.3 MB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006452/0.3778, allocations: 2.942 MB / 492.2 MB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002671/0.3781, allocations: 304.1 kB / 492.5 MB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007848/0.3789, allocations: 399.9 kB / 492.9 MB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.3897, allocations: 5.383 MB / 498.3 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.73e-05/0.3898, allocations: 0 / 498.3 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003899/0.3902, allocations: 164 kB / 498.4 MB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/0.3904, allocations: 176 kB / 498.6 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008496/0.3989, allocations: 4.466 MB / 0.4913 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02878/0.4277, allocations: 14.94 MB / 0.5059 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00616/0.4338, allocations: 3.24 MB / 0.509 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004055/0.4379, allocations: 1.983 MB / 0.511 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008772/0.4467, allocations: 4.206 MB / 0.5151 GB, free: 6.211 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.4467, allocations: 55.81 kB / 0.5151 GB, free: 6.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 3.928e-06/0.4467, allocations: 4 kB / 0.5151 GB, free: 6.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.01746/0.4642, allocations: 7.457 MB / 0.5224 GB, free: 14.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.4642, allocations: 73.41 kB / 0.5225 GB, free: 14.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004399/0.4686, allocations: 2.315 MB / 0.5248 GB, free: 12.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001764/0.4688, allocations: 53.7 kB / 0.5248 GB, free: 12.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.4704, allocations: 1.917 MB / 0.5267 GB, free: 10.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006982/0.4711, allocations: 0.6701 MB / 0.5273 GB, free: 9.555 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008364/0.4719, allocations: 428.5 kB / 0.5277 GB, free: 9.129 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.472, allocations: 305.1 kB / 0.528 GB, free: 8.828 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.4738, allocations: 0.9689 MB / 0.529 GB, free: 7.855 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/0.4763, allocations: 1.719 MB / 0.5307 GB, free: 5.809 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004426/0.4807, allocations: 2.842 MB / 0.5334 GB, free: 2.652 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.497e-05/0.4808, allocations: 8 kB / 0.5334 GB, free: 2.645 MB / 446.1 MB Notification: Performance of matching and sorting (n=302) (initialization): time 0.2181/0.6989, allocations: 3.321 MB / 0.5367 GB, free: 97.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.869e-05/0.699, allocations: 16.16 kB / 0.5367 GB, free: 97.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-05/0.699, allocations: 22.69 kB / 0.5367 GB, free: 97.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.7001, allocations: 378.5 kB / 0.5371 GB, free: 97.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/0.7023, allocations: 0.5536 MB / 0.5376 GB, free: 97.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004847/0.7071, allocations: 5.211 MB / 0.5427 GB, free: 94.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/0.7091, allocations: 125.6 kB / 0.5428 GB, free: 94.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/0.7093, allocations: 101.1 kB / 0.5429 GB, free: 94.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (277): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(2,15,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001964/0.7112, allocations: 1.218 MB / 0.5441 GB, free: 93.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003961/0.7116, allocations: 269 kB / 0.5444 GB, free: 93.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004135/0.7158, allocations: 2.721 MB / 0.547 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.7158, allocations: 20.97 kB / 0.5471 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.7158, allocations: 5.031 kB / 0.5471 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.7158, allocations: 11.34 kB / 0.5471 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007558/0.7234, allocations: 5.975 MB / 0.5529 GB, free: 90.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.7234, allocations: 0 / 0.5529 GB, free: 90.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.7248, allocations: 343.9 kB / 0.5532 GB, free: 90.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008627/0.7256, allocations: 409.9 kB / 0.5536 GB, free: 89.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.7257, allocations: 49.77 kB / 0.5537 GB, free: 89.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/0.731, allocations: 7.274 MB / 0.5608 GB, free: 83.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.731, allocations: 3.938 kB / 0.5608 GB, free: 83.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00528/0.7363, allocations: 4.032 MB / 0.5647 GB, free: 79.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.7375, allocations: 493.4 kB / 0.5652 GB, free: 79.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/0.7378, allocations: 39.56 kB / 0.5652 GB, free: 79.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.739, allocations: 91.11 kB / 0.5653 GB, free: 79.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.7393, allocations: 141 kB / 0.5654 GB, free: 79.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.7394, allocations: 47.98 kB / 0.5655 GB, free: 79.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001877/0.7413, allocations: 1.573 MB / 0.567 GB, free: 77.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7413, allocations: 0 / 0.567 GB, free: 77.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002542/0.7438, allocations: 0.7134 MB / 0.5677 GB, free: 76.89 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,15,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005425/0.7492, allocations: 4.684 MB / 0.5723 GB, free: 72.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003878/0.7531, allocations: 2.677 MB / 0.5749 GB, free: 69.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.7531, allocations: 0 / 0.5749 GB, free: 69.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.7551, allocations: 1.574 MB / 0.5765 GB, free: 67.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.7577, allocations: 0.6199 MB / 0.5771 GB, free: 67.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03451/0.7922, allocations: 25.7 MB / 0.6022 GB, free: 40.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002391/0.7946, allocations: 2.182 MB / 0.6043 GB, free: 38.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00164/0.7962, allocations: 0.5757 MB / 0.6048 GB, free: 37.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/0.7978, allocations: 1.503 MB / 0.6063 GB, free: 36.34 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7978, allocations: 0 / 0.6063 GB, free: 36.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1153/0.9131, allocations: 67.1 MB / 0.6718 GB, free: 1.977 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.26/18.17, allocations: 7.797 kB / 0.6718 GB, free: 1.969 MB / 478.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 34.63986989296973]