Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008283/0.0008283, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007518/0.0007518, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8788/0.8788, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.555e-05/1.703e-05, allocations: 5.516 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008599/0.008616, allocations: 9.613 MB / 328.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00693/0.01555, allocations: 3.439 MB / 331.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.01708, allocations: 87.38 kB / 331.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.01875, allocations: 0.8226 MB / 332.4 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002171/0.02092, allocations: 0.9429 MB / 333.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007879/0.0217, allocations: 471 kB / 333.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002695/0.0244, allocations: 3.031 MB / 336.8 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.02603, allocations: 1.513 MB / 338.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.02786, allocations: 2.054 MB / 340.4 MB, free: 236 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.02931, allocations: 1.516 MB / 341.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003639/0.02967, allocations: 372 kB / 342.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007439/0.03042, allocations: 475.7 kB / 342.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008088/0.03123, allocations: 1.114 MB / 343.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.03242, allocations: 1.138 MB / 345 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003489/0.0359, allocations: 4.943 MB / 349.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.03591, allocations: 0 / 349.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.03591, allocations: 0 / 349.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.03596, allocations: 8 kB / 350 MB, free: 6.66 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004407/0.04036, allocations: 3.359 MB / 353.3 MB, free: 3.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.04042, allocations: 16.86 kB / 353.3 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003474/0.04076, allocations: 363 kB / 353.7 MB, free: 2.871 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.0413, allocations: 354.8 kB / 354 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.04337, allocations: 1.739 MB / 355.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.04349, allocations: 193.4 kB / 356 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.04375, allocations: 256.2 kB / 356.2 MB, free: 312 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003775/0.04752, allocations: 3.363 MB / 359.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.04757, allocations: 3.953 kB / 359.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.04773, allocations: 108 kB / 359.7 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.04784, allocations: 124.9 kB / 359.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003037/0.05087, allocations: 2.744 MB / 362.5 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009602/0.06048, allocations: 9.44 MB / 372 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.06173, allocations: 1.058 MB / 373 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009782/0.06271, allocations: 0.6993 MB / 373.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001859/0.06289, allocations: 54 kB / 373.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.06293, allocations: 43.56 kB / 373.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 3.006e-06/0.06293, allocations: 0 / 373.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.008816/0.07174, allocations: 6.641 MB / 380.5 MB, free: 7.488 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.07179, allocations: 64.41 kB / 380.5 MB, free: 7.414 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/0.07347, allocations: 1.817 MB / 382.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.204e-05/0.07353, allocations: 45.7 kB / 382.4 MB, free: 5.547 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006457/0.07418, allocations: 1.31 MB / 383.7 MB, free: 4.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.07441, allocations: 440.2 kB / 384.1 MB, free: 3.789 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.07472, allocations: 299.4 kB / 384.4 MB, free: 3.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.0748, allocations: 305.1 kB / 384.7 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008036/0.0756, allocations: 0.7808 MB / 385.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.07665, allocations: 1.288 MB / 386.8 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002262/0.07891, allocations: 2.214 MB / 389 MB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.07892, allocations: 4 kB / 389 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002587/0.08151, allocations: 2.479 MB / 391.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.812e-05/0.08154, allocations: 12 kB / 391.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.08157, allocations: 16 kB / 391.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000409/0.08198, allocations: 239.2 kB / 391.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008353/0.08281, allocations: 423.6 kB / 392.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/0.08482, allocations: 3.015 MB / 395.2 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006971/0.08551, allocations: 127.8 kB / 395.3 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.0856, allocations: 72 kB / 395.4 MB, free: 7.816 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009723/0.08657, allocations: 0.825 MB / 396.2 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.08676, allocations: 194.7 kB / 396.4 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.08886, allocations: 2.035 MB / 398.4 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.08887, allocations: 12 kB / 398.4 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.08887, allocations: 0 / 398.4 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.08888, allocations: 7.969 kB / 398.5 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.09363, allocations: 4.456 MB / 402.9 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.09363, allocations: 0 / 402.9 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005618/0.0942, allocations: 267.6 kB / 403.2 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.0945, allocations: 207.4 kB / 403.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/0.09455, allocations: 24 kB / 403.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.09608, allocations: 3.004 MB / 406.4 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.09608, allocations: 4.031 kB / 406.4 MB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002992/0.09907, allocations: 3.14 MB / 409.5 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004723/0.09954, allocations: 362.7 kB / 409.9 MB, free: 8.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.09966, allocations: 24 kB / 409.9 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/0.1001, allocations: 91.88 kB / 410 MB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.1002, allocations: 92.7 kB / 410.1 MB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.33e-05/0.1003, allocations: 32 kB / 410.1 MB, free: 8.633 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.1014, allocations: 1.224 MB / 411.4 MB, free: 7.418 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1014, allocations: 0 / 411.4 MB, free: 7.418 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000879/0.1022, allocations: 491.9 kB / 411.8 MB, free: 6.938 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (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.003254/0.1055, allocations: 3.778 MB / 415.6 MB, free: 3.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.1078, allocations: 2.114 MB / 417.7 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1078, allocations: 8.062 kB / 417.7 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.1088, allocations: 1.118 MB / 418.9 MB, free: 15.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.1101, allocations: 499.9 kB / 419.3 MB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/0.1304, allocations: 18.81 MB / 438.2 MB, free: 11.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.1315, allocations: 1.447 MB / 439.6 MB, free: 10.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008632/0.1323, allocations: 0.4999 MB / 440.1 MB, free: 9.742 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008505/0.1332, allocations: 1.012 MB / 441.1 MB, free: 8.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1332, allocations: 4 kB / 441.1 MB, free: 8.727 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.201/0.3342, allocations: 49.12 MB / 490.2 MB, free: 88.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.526/8.86, allocations: 7.875 kB / 490.2 MB, free: 88.72 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.282747964374721]