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.0008799/0.0008799, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008377/0.0008377, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9251/0.9251, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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 2.144e-06/2.144e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.699e-05/2.914e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01217/0.01219, allocations: 15.06 MB / 339.7 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008652/0.02085, allocations: 5.417 MB / 345.1 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.0224, allocations: 131.2 kB / 345.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.02445, allocations: 1.262 MB / 346.5 MB, free: 9.957 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002643/0.0271, allocations: 1.673 MB / 348.1 MB, free: 8.273 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.02843, allocations: 1.083 MB / 349.2 MB, free: 7.191 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.03213, allocations: 5.418 MB / 354.6 MB, free: 1.754 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.03417, allocations: 2.223 MB / 356.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002606/0.03677, allocations: 3.326 MB / 360.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001797/0.03857, allocations: 2.201 MB / 362.4 MB, free: 9.906 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004918/0.03906, allocations: 0.6094 MB / 363 MB, free: 9.297 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.04012, allocations: 0.8433 MB / 363.8 MB, free: 8.453 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008625/0.04099, allocations: 1.464 MB / 365.3 MB, free: 6.984 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.04253, allocations: 1.801 MB / 367.1 MB, free: 5.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006176/0.0487, allocations: 8.215 MB / 375.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.04871, allocations: 0 / 375.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.04871, allocations: 4 kB / 375.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.342e-05/0.0488, allocations: 0 / 375.3 MB, free: 12.94 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.007189/0.05599, allocations: 5.41 MB / 380.7 MB, free: 7.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.523e-05/0.05608, allocations: 8.031 kB / 380.7 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006364/0.05671, allocations: 0.6066 MB / 381.3 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00266/0.05937, allocations: 1.028 MB / 382.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003663/0.06304, allocations: 2.944 MB / 385.3 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.06318, allocations: 300.5 kB / 385.6 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003786/0.06356, allocations: 400.3 kB / 386 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005858/0.06942, allocations: 5.379 MB / 391.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.748e-05/0.06947, allocations: 0 / 391.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.06973, allocations: 164 kB / 391.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.06984, allocations: 172 kB / 391.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004934/0.07477, allocations: 4.462 MB / 396.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.09046, allocations: 14.93 MB / 411.1 MB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003607/0.09407, allocations: 3.235 MB / 414.3 MB, free: 5.395 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/0.09629, allocations: 1.99 MB / 416.3 MB, free: 3.406 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004992/0.1013, allocations: 4.187 MB / 420.5 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1013, allocations: 55.81 kB / 420.6 MB, free: 15.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=157): time 2.905e-06/0.1013, allocations: 0 / 420.6 MB, free: 15.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=160): time 0.007377/0.1087, allocations: 5.901 MB / 426.5 MB, free: 9.172 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.1087, allocations: 68.72 kB / 426.5 MB, free: 9.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/0.1113, allocations: 2.346 MB / 428.9 MB, free: 6.719 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.962e-05/0.1113, allocations: 53.7 kB / 428.9 MB, free: 6.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008508/0.1122, allocations: 1.909 MB / 430.8 MB, free: 4.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.1125, allocations: 0.5694 MB / 431.4 MB, free: 4.156 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003853/0.1129, allocations: 395.9 kB / 431.8 MB, free: 3.762 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.1129, allocations: 313 kB / 432.1 MB, free: 3.453 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000941/0.1139, allocations: 0.8553 MB / 433 MB, free: 2.594 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.1154, allocations: 1.596 MB / 434.6 MB, free: 0.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.1176, allocations: 2.586 MB / 437.1 MB, free: 13.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.1176, allocations: 8 kB / 437.1 MB, free: 13.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003022/0.1206, allocations: 2.912 MB / 440.1 MB, free: 10.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.1207, allocations: 15.94 kB / 440.1 MB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.1207, allocations: 24 kB / 440.1 MB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.121, allocations: 186 kB / 440.3 MB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.1223, allocations: 0.5265 MB / 440.8 MB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.1238, allocations: 2.311 MB / 443.1 MB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008215/0.1246, allocations: 107.9 kB / 443.2 MB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.1248, allocations: 104.1 kB / 443.3 MB, free: 7.438 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.001442/0.1262, allocations: 1.199 MB / 444.5 MB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.1264, allocations: 262.3 kB / 444.8 MB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002655/0.1291, allocations: 2.361 MB / 447.1 MB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.1291, allocations: 16 kB / 447.2 MB, free: 3.574 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1291, allocations: 4 kB / 447.2 MB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.1291, allocations: 7.969 kB / 447.2 MB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1551/0.2842, allocations: 5.387 MB / 452.6 MB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.2842, allocations: 2.625 kB / 452.6 MB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006943/0.2849, allocations: 282.7 kB / 452.8 MB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005895/0.2855, allocations: 366.3 kB / 453.2 MB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.26e-05/0.2856, allocations: 41.08 kB / 453.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00364/0.2892, allocations: 7.014 MB / 460.2 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2892, allocations: 1.469 kB / 460.2 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003318/0.2925, allocations: 3.498 MB / 463.7 MB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.2931, allocations: 460.8 kB / 464.2 MB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.2933, allocations: 28.66 kB / 464.2 MB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.2939, allocations: 86.09 kB / 464.3 MB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.294, allocations: 123.3 kB / 464.4 MB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.377e-05/0.2941, allocations: 43.2 kB / 464.5 MB, free: 105.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00136/0.2955, allocations: 1.567 MB / 466 MB, free: 104.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2955, allocations: 0 / 466 MB, free: 104.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001241/0.2967, allocations: 0.676 MB / 466.7 MB, free: 104.6 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.003207/0.2999, allocations: 4.139 MB / 470.9 MB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.3019, allocations: 2.165 MB / 473 MB, free: 99.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3019, allocations: 0 / 473 MB, free: 99.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.303, allocations: 1.411 MB / 474.4 MB, free: 97.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.3044, allocations: 0.6148 MB / 475 MB, free: 97.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/0.3276, allocations: 24.26 MB / 499.3 MB, free: 72.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.3288, allocations: 2.139 MB / 0.4897 GB, free: 70.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009592/0.3298, allocations: 0.5476 MB / 0.4902 GB, free: 70.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009602/0.3308, allocations: 1.488 MB / 0.4917 GB, free: 68.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3308, allocations: 0 / 0.4917 GB, free: 68.57 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06281/0.3936, allocations: 63.34 MB / 0.5535 GB, free: 5.871 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.799/9.193, allocations: 7.797 kB / 0.5535 GB, free: 5.863 MB / 410.7 MB " [Timeout remaining time 651] (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/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_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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 15.833666841499507]