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.001322/0.001322, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.00151/0.00151, allocations: 194.2 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.401/1.401, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001579/0.001579, allocations: 47.92 kB / 370.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2522, allocations: 52.19 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01324/0.2655, allocations: 9.61 MB / 432.2 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007884/0.2734, allocations: 3.412 MB / 435.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002174/0.2755, allocations: 83.44 kB / 435.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002717/0.2783, allocations: 0.8112 MB / 436.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003624/0.2819, allocations: 0.9282 MB / 437.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.2836, allocations: 459.3 kB / 437.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005008/0.2886, allocations: 2.931 MB / 440.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002544/0.2911, allocations: 1.502 MB / 442.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.2936, allocations: 1.417 MB / 443.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003104/0.2967, allocations: 1.685 MB / 445.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.2978, allocations: 372 kB / 445.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.2991, allocations: 475.8 kB / 446.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.3003, allocations: 1.091 MB / 447.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001969/0.3023, allocations: 1.346 MB / 448.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005949/0.3082, allocations: 4.929 MB / 453.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.3082, allocations: 0 / 453.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3082, allocations: 0 / 453.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001307/0.3084, allocations: 0 / 453.6 MB, free: 15.18 MB / 366.1 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.009521/0.3179, allocations: 3.401 MB / 457 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3179, allocations: 8.031 kB / 457 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006257/0.3186, allocations: 374.9 kB / 457.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009103/0.3195, allocations: 354.9 kB / 457.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004438/0.3239, allocations: 1.74 MB / 459.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.3241, allocations: 193.1 kB / 459.7 MB, free: 9.023 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000521/0.3246, allocations: 259.9 kB / 459.9 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006106/0.3307, allocations: 3.351 MB / 463.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.202e-05/0.3308, allocations: 7.984 kB / 463.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.331, allocations: 104 kB / 463.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.3312, allocations: 124.9 kB / 463.5 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004886/0.3361, allocations: 2.744 MB / 466.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.3534, allocations: 9.433 MB / 475.7 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3554, allocations: 1.067 MB / 476.7 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.3567, allocations: 0.7076 MB / 477.5 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002543/0.357, allocations: 44.95 kB / 477.5 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.357, allocations: 43.56 kB / 477.5 MB, free: 6.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.186e-06/0.357, allocations: 4 kB / 477.5 MB, free: 6.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01573/0.3727, allocations: 6.637 MB / 484.2 MB, free: 15.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.3728, allocations: 68.34 kB / 484.3 MB, free: 15.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.3755, allocations: 1.816 MB / 486.1 MB, free: 14.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.3756, allocations: 45.7 kB / 486.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.3767, allocations: 1.302 MB / 487.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004223/0.3771, allocations: 456.1 kB / 487.9 MB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/0.3776, allocations: 299.4 kB / 488.2 MB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3777, allocations: 309 kB / 488.5 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.379, allocations: 0.7769 MB / 489.2 MB, free: 10.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.3808, allocations: 1.296 MB / 490.5 MB, free: 9.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003176/0.3839, allocations: 2.202 MB / 492.7 MB, free: 6.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.3839, allocations: 11.94 kB / 492.7 MB, free: 6.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004434/0.3884, allocations: 2.479 MB / 495.2 MB, free: 4.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3884, allocations: 12 kB / 495.2 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.3884, allocations: 16 kB / 495.2 MB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006543/0.3891, allocations: 239.2 kB / 495.5 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.3906, allocations: 415.6 kB / 495.9 MB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.3936, allocations: 3.028 MB / 498.9 MB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.3953, allocations: 131.8 kB / 499 MB, free: 344 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.3955, allocations: 75.92 kB / 499.1 MB, free: 268 kB / 398.1 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.001565/0.3971, allocations: 0.8057 MB / 499.9 MB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000536/0.3976, allocations: 198.8 kB / 0.4884 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.4015, allocations: 2.043 MB / 0.4904 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.4016, allocations: 12 kB / 0.4904 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4016, allocations: 0 / 0.4904 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.4016, allocations: 3.984 kB / 0.4904 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008904/0.4105, allocations: 4.452 MB / 0.4948 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.4105, allocations: 4 kB / 0.4948 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.4116, allocations: 259.6 kB / 0.495 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006071/0.4122, allocations: 211.6 kB / 0.4952 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.003e-05/0.4123, allocations: 27.98 kB / 0.4952 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003007/0.4153, allocations: 3 MB / 0.4982 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4153, allocations: 4 kB / 0.4982 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005021/0.4203, allocations: 3.14 MB / 0.5012 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.4214, allocations: 358.6 kB / 0.5016 GB, free: 1.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/0.4217, allocations: 28.06 kB / 0.5016 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009344/0.4226, allocations: 99.86 kB / 0.5017 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.4228, allocations: 88.78 kB / 0.5018 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-05/0.4229, allocations: 32 kB / 0.5018 GB, free: 1.094 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001985/0.4249, allocations: 1.224 MB / 0.503 GB, free: 15.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4249, allocations: 0 / 0.503 GB, free: 15.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001663/0.4265, allocations: 487.9 kB / 0.5035 GB, free: 15.4 MB / 430.1 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.005465/0.432, allocations: 3.783 MB / 0.5072 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003782/0.4358, allocations: 2.118 MB / 0.5092 GB, free: 9.402 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4358, allocations: 0 / 0.5092 GB, free: 9.402 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.4377, allocations: 1.129 MB / 0.5103 GB, free: 8.242 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.44, allocations: 0.4939 MB / 0.5108 GB, free: 7.758 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03159/0.4716, allocations: 18.78 MB / 0.5292 GB, free: 4.219 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/0.4735, allocations: 1.447 MB / 0.5306 GB, free: 2.738 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001538/0.475, allocations: 0.496 MB / 0.5311 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/0.4764, allocations: 1.011 MB / 0.532 GB, free: 1.227 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4764, allocations: 3.938 kB / 0.532 GB, free: 1.223 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2907/0.7671, allocations: 49.14 MB / 0.58 GB, free: 102.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/14.1, allocations: 11.73 kB / 0.5801 GB, free: 102.8 MB / 462.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 19.639877230860293]