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.001399/0.001399, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001424/0.001424, allocations: 201.9 kB / 23.73 MB, free: 4.379 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.781 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 51.92 kB / 377.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2423, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01894/0.2613, allocations: 15.04 MB / 446.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01061/0.2719, allocations: 5.402 MB / 451.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.2742, allocations: 131.2 kB / 451.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003121/0.2773, allocations: 1.258 MB / 452.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004565/0.2819, allocations: 1.631 MB / 454.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002537/0.2844, allocations: 1.072 MB / 455.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007149/0.2916, allocations: 5.235 MB / 460.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.2954, allocations: 2.305 MB / 463.2 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003876/0.2993, allocations: 2.255 MB / 465.4 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005231/0.3045, allocations: 2.674 MB / 468.1 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002471/0.307, allocations: 0.6133 MB / 468.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.3098, allocations: 0.8475 MB / 469.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001805/0.3116, allocations: 1.433 MB / 471 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00354/0.3151, allocations: 2.097 MB / 473.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009904/0.3251, allocations: 8.199 MB / 481.3 MB, free: 4.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3251, allocations: 0 / 481.3 MB, free: 4.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3251, allocations: 0 / 481.3 MB, free: 4.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001846/0.3252, allocations: 0 / 481.3 MB, free: 4.168 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.0151/0.3403, allocations: 5.457 MB / 486.7 MB, free: 14.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3404, allocations: 8.031 kB / 486.8 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/0.3415, allocations: 0.6105 MB / 487.4 MB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005614/0.3472, allocations: 1.025 MB / 488.4 MB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007466/0.3546, allocations: 2.944 MB / 491.3 MB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.3549, allocations: 296.1 kB / 491.6 MB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.356, allocations: 400 kB / 492 MB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.3669, allocations: 5.379 MB / 497.4 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.299e-05/0.367, allocations: 3.953 kB / 497.4 MB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003998/0.3674, allocations: 164 kB / 497.6 MB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/0.3676, allocations: 176 kB / 497.7 MB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009108/0.3767, allocations: 4.459 MB / 0.4904 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03002/0.4067, allocations: 14.94 MB / 0.505 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005951/0.4127, allocations: 3.226 MB / 0.5082 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00395/0.4166, allocations: 1.975 MB / 0.5101 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009361/0.426, allocations: 4.19 MB / 0.5142 GB, free: 6.359 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.426, allocations: 51.88 kB / 0.5142 GB, free: 6.301 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 4.248e-06/0.426, allocations: 0 / 0.5142 GB, free: 6.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01271/0.4387, allocations: 5.904 MB / 0.52 GB, free: 364 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.4388, allocations: 72.72 kB / 0.5201 GB, free: 280 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.4422, allocations: 2.35 MB / 0.5224 GB, free: 13.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.4423, allocations: 57.7 kB / 0.5224 GB, free: 13.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.4438, allocations: 1.913 MB / 0.5243 GB, free: 11.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000512/0.4444, allocations: 0.5694 MB / 0.5248 GB, free: 11.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006096/0.445, allocations: 399.9 kB / 0.5252 GB, free: 10.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4451, allocations: 301.1 kB / 0.5255 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.4466, allocations: 0.8631 MB / 0.5264 GB, free: 9.766 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/0.4487, allocations: 1.592 MB / 0.5279 GB, free: 7.844 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003778/0.4524, allocations: 2.586 MB / 0.5304 GB, free: 4.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/0.4525, allocations: 4 kB / 0.5304 GB, free: 4.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.00541/0.4579, allocations: 2.904 MB / 0.5333 GB, free: 2.016 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.4579, allocations: 20.06 kB / 0.5333 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/0.4579, allocations: 27.94 kB / 0.5333 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000475/0.4584, allocations: 177.6 kB / 0.5335 GB, free: 1.789 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/0.4604, allocations: 0.5304 MB / 0.534 GB, free: 1.258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2047/0.6651, allocations: 2.308 MB / 0.5363 GB, free: 97.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.6672, allocations: 118.9 kB / 0.5364 GB, free: 97.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/0.6674, allocations: 97 kB / 0.5365 GB, free: 97.06 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 (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002053/0.6695, allocations: 1.205 MB / 0.5376 GB, free: 96.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004877/0.6699, allocations: 256.8 kB / 0.5379 GB, free: 96.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004111/0.6741, allocations: 2.359 MB / 0.5402 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.6741, allocations: 21.72 kB / 0.5402 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.6741, allocations: 5.5 kB / 0.5402 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.6741, allocations: 9.297 kB / 0.5402 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008077/0.6822, allocations: 5.394 MB / 0.5455 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.6822, allocations: 3.031 kB / 0.5455 GB, free: 93.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.6833, allocations: 284.1 kB / 0.5458 GB, free: 93.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000787/0.6841, allocations: 360.2 kB / 0.5461 GB, free: 93.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.134e-05/0.6842, allocations: 42.27 kB / 0.5461 GB, free: 93.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004979/0.6892, allocations: 7.011 MB / 0.553 GB, free: 88.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6892, allocations: 3.531 kB / 0.553 GB, free: 88.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/0.6937, allocations: 3.512 MB / 0.5564 GB, free: 86.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.6948, allocations: 447.1 kB / 0.5569 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.6951, allocations: 35.19 kB / 0.5569 GB, free: 86.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.6962, allocations: 79.12 kB / 0.557 GB, free: 86.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.6964, allocations: 134.2 kB / 0.5571 GB, free: 85.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.728e-05/0.6965, allocations: 47.73 kB / 0.5571 GB, free: 85.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001737/0.6983, allocations: 1.562 MB / 0.5587 GB, free: 84.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6983, allocations: 4 kB / 0.5587 GB, free: 84.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001837/0.7001, allocations: 0.6718 MB / 0.5593 GB, free: 83.91 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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (129): * Single equations (assignments): 126 * 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 {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004574/0.7047, allocations: 4.141 MB / 0.5634 GB, free: 80.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.7076, allocations: 2.163 MB / 0.5655 GB, free: 78.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7076, allocations: 0 / 0.5655 GB, free: 78.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.7093, allocations: 1.415 MB / 0.5669 GB, free: 76.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.7116, allocations: 0.6097 MB / 0.5675 GB, free: 76.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/0.74, allocations: 24.29 MB / 0.5912 GB, free: 50.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.7417, allocations: 2.135 MB / 0.5933 GB, free: 48.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.7431, allocations: 0.5554 MB / 0.5938 GB, free: 48.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.7445, allocations: 1.479 MB / 0.5953 GB, free: 46.71 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/0.7445, allocations: 0 / 0.5953 GB, free: 46.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/0.857, allocations: 64.27 MB / 0.658 GB, free: 15.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.76/18.62, allocations: 7.719 kB / 0.658 GB, free: 15.11 MB / 478.1 MB " [Timeout remaining time 641] (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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 29.08988000199315]