Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9363/0.9363, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.267e-05, allocations: 6.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01148/0.0115, allocations: 15.06 MB / 339.6 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008505/0.02001, allocations: 5.413 MB / 345 MB, free: 11.32 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002541/0.02255, allocations: 135.2 kB / 345.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.0253, allocations: 1.258 MB / 346.4 MB, free: 9.926 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003845/0.02915, allocations: 1.68 MB / 348.1 MB, free: 8.234 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.03092, allocations: 1.083 MB / 349.2 MB, free: 7.152 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004847/0.03577, allocations: 5.411 MB / 354.6 MB, free: 1.719 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002894/0.03867, allocations: 2.231 MB / 356.8 MB, free: 15.4 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003979/0.04265, allocations: 3.326 MB / 360.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002279/0.04492, allocations: 2.198 MB / 362.3 MB, free: 9.867 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006437/0.04557, allocations: 0.6133 MB / 362.9 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.04685, allocations: 0.8433 MB / 363.8 MB, free: 8.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008467/0.0477, allocations: 1.464 MB / 365.3 MB, free: 6.941 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001608/0.04931, allocations: 1.789 MB / 367 MB, free: 5.148 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005841/0.05515, allocations: 8.234 MB / 375.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.05515, allocations: 0 / 375.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.05515, allocations: 0 / 375.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001474/0.0553, allocations: 3.938 kB / 375.3 MB, free: 12.89 MB / 346.7 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.008273/0.06357, allocations: 5.406 MB / 380.7 MB, free: 7.414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.06362, allocations: 15.98 kB / 380.7 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007488/0.06437, allocations: 0.5988 MB / 381.3 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002812/0.06718, allocations: 1.028 MB / 382.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003988/0.07117, allocations: 2.94 MB / 385.3 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.07133, allocations: 304.5 kB / 385.6 MB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004255/0.07175, allocations: 396.3 kB / 386 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006481/0.07823, allocations: 5.383 MB / 391.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-05/0.07829, allocations: 0 / 391.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.07856, allocations: 164 kB / 391.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.07868, allocations: 183.9 kB / 391.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005474/0.08416, allocations: 4.451 MB / 396.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/0.1008, allocations: 14.94 MB / 411.1 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003724/0.1046, allocations: 3.229 MB / 414.3 MB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/0.107, allocations: 1.983 MB / 416.3 MB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005885/0.1128, allocations: 4.202 MB / 420.5 MB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.1129, allocations: 51.81 kB / 420.5 MB, free: 15.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 3.346e-06/0.1129, allocations: 0 / 420.5 MB, free: 15.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=160): time 0.007985/0.1209, allocations: 5.905 MB / 426.4 MB, free: 9.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.1209, allocations: 68.72 kB / 426.5 MB, free: 9.035 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002496/0.1234, allocations: 2.35 MB / 428.9 MB, free: 6.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.1235, allocations: 53.7 kB / 428.9 MB, free: 6.602 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000955/0.1244, allocations: 1.901 MB / 430.8 MB, free: 4.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.1248, allocations: 0.5772 MB / 431.4 MB, free: 4.098 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004089/0.1252, allocations: 395.8 kB / 431.8 MB, free: 3.703 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.083e-05/0.1253, allocations: 305.1 kB / 432.1 MB, free: 3.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009665/0.1262, allocations: 0.8592 MB / 432.9 MB, free: 2.539 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.1275, allocations: 1.6 MB / 434.5 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/0.13, allocations: 2.582 MB / 437.1 MB, free: 13.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.13, allocations: 8 kB / 437.1 MB, free: 13.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003344/0.1334, allocations: 2.9 MB / 440 MB, free: 10.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.1334, allocations: 16.47 kB / 440 MB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.1334, allocations: 24 kB / 440.1 MB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.1338, allocations: 177.6 kB / 440.2 MB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.1348, allocations: 0.5343 MB / 440.8 MB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.1365, allocations: 2.307 MB / 443.1 MB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.1377, allocations: 115.9 kB / 443.2 MB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.1378, allocations: 104 kB / 443.3 MB, free: 7.387 MB / 410.7 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.002121/0.1399, allocations: 1.196 MB / 444.5 MB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/0.1403, allocations: 262.3 kB / 444.7 MB, free: 5.922 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003025/0.1433, allocations: 2.361 MB / 447.1 MB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.1433, allocations: 23.94 kB / 447.1 MB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.1433, allocations: 4 kB / 447.1 MB, free: 3.512 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.1433, allocations: 11.97 kB / 447.1 MB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1844/0.3278, allocations: 5.38 MB / 452.5 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.3278, allocations: 1.594 kB / 452.5 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/0.3286, allocations: 285.2 kB / 452.8 MB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/0.3293, allocations: 367.4 kB / 453.2 MB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.3294, allocations: 41.17 kB / 453.2 MB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004443/0.3338, allocations: 6.998 MB / 460.2 MB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.3338, allocations: 9.5 kB / 460.2 MB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003662/0.3375, allocations: 3.499 MB / 463.7 MB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009778/0.3385, allocations: 446.4 kB / 464.1 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/0.3387, allocations: 37.5 kB / 464.2 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006298/0.3393, allocations: 78.77 kB / 464.2 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.3396, allocations: 133.2 kB / 464.4 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.258e-05/0.3396, allocations: 43.69 kB / 464.4 MB, free: 104.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001827/0.3414, allocations: 1.564 MB / 466 MB, free: 103.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3414, allocations: 0 / 466 MB, free: 103.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001628/0.3431, allocations: 0.681 MB / 466.7 MB, free: 103.4 MB / 410.7 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.003661/0.3467, allocations: 4.144 MB / 470.8 MB, free: 99.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002428/0.3492, allocations: 2.155 MB / 473 MB, free: 97.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3492, allocations: 8 kB / 473 MB, free: 97.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.3505, allocations: 1.404 MB / 474.4 MB, free: 96.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.3521, allocations: 0.6067 MB / 475 MB, free: 96.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02883/0.381, allocations: 24.29 MB / 499.3 MB, free: 71.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001614/0.3826, allocations: 2.135 MB / 0.4897 GB, free: 69.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001241/0.3838, allocations: 0.5515 MB / 0.4902 GB, free: 68.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/0.385, allocations: 1.488 MB / 0.4916 GB, free: 67.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.733e-06/0.385, allocations: 0 / 0.4916 GB, free: 67.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/0.4508, allocations: 63.35 MB / 0.5535 GB, free: 4.461 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.922/9.373, allocations: 4.062 kB / 0.5535 GB, free: 4.457 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 16.148235662840307]