Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.0009585/0.0009585, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0008484/0.0008484, allocations: 156.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.9081/0.9081, allocations: 177 MB / 204.1 MB, free: 5.75 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.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.507e-05/1.628e-05, allocations: 3.125 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0112/0.01121, allocations: 13.79 MB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007653/0.01887, allocations: 5.092 MB / 343.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.02041, allocations: 123.2 kB / 343.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.02235, allocations: 1.079 MB / 344.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.0246, allocations: 1.312 MB / 345.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.02586, allocations: 0.914 MB / 346.9 MB, free: 9.441 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002861/0.02872, allocations: 3.79 MB / 350.6 MB, free: 5.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/0.03052, allocations: 1.842 MB / 352.5 MB, free: 3.727 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.03292, allocations: 2.62 MB / 355.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.03486, allocations: 1.726 MB / 356.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006957/0.03555, allocations: 480 kB / 357.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009532/0.03651, allocations: 0.6948 MB / 358 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007158/0.03722, allocations: 1.176 MB / 359.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.03848, allocations: 1.38 MB / 360.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00414/0.04262, allocations: 6.353 MB / 366.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.04263, allocations: 4 kB / 366.9 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.04263, allocations: 0 / 366.9 MB, free: 5.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.292e-05/0.0427, allocations: 0 / 366.9 MB, free: 5.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.005526/0.04823, allocations: 4.256 MB / 371.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.04827, allocations: 11.98 kB / 371.2 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003941/0.04867, allocations: 455.3 kB / 371.6 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00152/0.05019, allocations: 0.6272 MB / 372.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/0.05272, allocations: 2.209 MB / 374.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.05285, allocations: 234.7 kB / 374.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003129/0.05317, allocations: 312.3 kB / 375 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004463/0.05763, allocations: 4.134 MB / 379.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.321e-05/0.05768, allocations: 3.953 kB / 379.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002028/0.05789, allocations: 128 kB / 379.3 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.05799, allocations: 150.2 kB / 379.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003681/0.06167, allocations: 3.386 MB / 382.8 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01117/0.07285, allocations: 11.79 MB / 394.6 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.07492, allocations: 1.76 MB / 396.3 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009914/0.07591, allocations: 0.926 MB / 397.3 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002549/0.07846, allocations: 2.178 MB / 399.4 MB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.07849, allocations: 47.5 kB / 399.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.836e-06/0.07849, allocations: 0 / 399.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.006956/0.08545, allocations: 5.811 MB / 405.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.08549, allocations: 68.72 kB / 405.4 MB, free: 14.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.08724, allocations: 1.94 MB / 407.3 MB, free: 12.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.216e-05/0.0873, allocations: 49.7 kB / 407.4 MB, free: 12.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007042/0.08801, allocations: 1.552 MB / 408.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.08826, allocations: 0.4997 MB / 409.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003218/0.08858, allocations: 335.4 kB / 409.7 MB, free: 9.703 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/0.08865, allocations: 305.1 kB / 410 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000793/0.08944, allocations: 0.7652 MB / 410.8 MB, free: 8.637 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.09053, allocations: 1.404 MB / 412.2 MB, free: 6.957 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001989/0.09252, allocations: 2.32 MB / 414.5 MB, free: 4.371 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.09252, allocations: 4 kB / 414.5 MB, free: 4.367 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002588/0.09511, allocations: 2.49 MB / 417 MB, free: 1.859 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.09514, allocations: 12 kB / 417 MB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.09516, allocations: 23.94 kB / 417.1 MB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002388/0.0954, allocations: 118.5 kB / 417.2 MB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009297/0.09633, allocations: 483.2 kB / 417.6 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007493/0.09708, allocations: 1.306 MB / 418.9 MB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007438/0.09782, allocations: 123.7 kB / 419.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.319e-05/0.09792, allocations: 80 kB / 419.1 MB, free: 15.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001223/0.09914, allocations: 0.993 MB / 420.1 MB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.09934, allocations: 214.6 kB / 420.4 MB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.1015, allocations: 1.962 MB / 422.3 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.1015, allocations: 15.98 kB / 422.3 MB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1015, allocations: 7.938 kB / 422.3 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.1015, allocations: 3.984 kB / 422.3 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004878/0.1064, allocations: 4.659 MB / 427 MB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.1064, allocations: 4 kB / 427 MB, free: 7.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006822/0.1071, allocations: 315.8 kB / 427.3 MB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000167/0.1072, allocations: 98.52 kB / 427.4 MB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.1073, allocations: 24 kB / 427.4 MB, free: 7.176 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006127/0.1079, allocations: 1.263 MB / 428.7 MB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1079, allocations: 4.094 kB / 428.7 MB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.1108, allocations: 3.095 MB / 431.8 MB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005196/0.1113, allocations: 394.5 kB / 432.2 MB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.1114, allocations: 24 kB / 432.2 MB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.1119, allocations: 79.91 kB / 432.3 MB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.112, allocations: 97.08 kB / 432.4 MB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.971e-05/0.1121, allocations: 36.05 kB / 432.4 MB, free: 2.023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001244/0.1133, allocations: 1.305 MB / 433.7 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1133, allocations: 0 / 433.7 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001129/0.1144, allocations: 0.5351 MB / 434.3 MB, free: 164 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 1 system {(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.003262/0.1177, allocations: 3.718 MB / 438 MB, free: 12.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.1198, allocations: 1.971 MB / 439.9 MB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1198, allocations: 0 / 439.9 MB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009194/0.1207, allocations: 0.958 MB / 440.9 MB, free: 9.418 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.122, allocations: 0.5224 MB / 441.4 MB, free: 8.902 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1613/0.2833, allocations: 20.13 MB / 461.5 MB, free: 109.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.2844, allocations: 1.715 MB / 463.3 MB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009014/0.2853, allocations: 0.5179 MB / 463.8 MB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008395/0.2861, allocations: 1.182 MB / 465 MB, free: 107.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2861, allocations: 0 / 465 MB, free: 107.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05729/0.3434, allocations: 53.08 MB / 0.5059 GB, free: 54.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.887, allocations: 15.61 kB / 0.5059 GB, free: 54.85 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 12.96128255687654]