Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.00127/0.00127, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001388/0.001388, allocations: 209.4 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_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_1_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.001528/0.001528, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2428, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01277/0.2556, allocations: 9.65 MB / 440.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007502/0.2631, allocations: 3.482 MB / 444.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001933/0.265, allocations: 83.44 kB / 444.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.2674, allocations: 0.8034 MB / 445.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00316/0.2706, allocations: 0.9165 MB / 446 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.2717, allocations: 471.3 kB / 446.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003775/0.2755, allocations: 2.95 MB / 449.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.2779, allocations: 1.568 MB / 451 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002418/0.2803, allocations: 1.421 MB / 452.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002995/0.2833, allocations: 1.806 MB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006239/0.2839, allocations: 372 kB / 454.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.285, allocations: 479.8 kB / 455.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001235/0.2862, allocations: 1.091 MB / 456.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00179/0.288, allocations: 1.342 MB / 457.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006013/0.294, allocations: 4.947 MB / 462.5 MB, free: 7.117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.294, allocations: 0 / 462.5 MB, free: 7.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.294, allocations: 0 / 462.5 MB, free: 7.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001239/0.2941, allocations: 0 / 462.5 MB, free: 7.117 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.008288/0.3024, allocations: 3.405 MB / 465.9 MB, free: 3.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3025, allocations: 12.03 kB / 465.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007034/0.3032, allocations: 359 kB / 466.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.3043, allocations: 362.8 kB / 466.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004253/0.3086, allocations: 1.756 MB / 468.3 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.3088, allocations: 193.2 kB / 468.5 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006177/0.3094, allocations: 251.9 kB / 468.8 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006835/0.3163, allocations: 3.358 MB / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.078e-05/0.3163, allocations: 15.83 kB / 472.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.3166, allocations: 100 kB / 472.2 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.3168, allocations: 124.9 kB / 472.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005154/0.3219, allocations: 2.744 MB / 475.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01772/0.3397, allocations: 9.433 MB / 484.5 MB, free: 460 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.3415, allocations: 1.059 MB / 485.6 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.3427, allocations: 0.707 MB / 486.3 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002282/0.343, allocations: 54.05 kB / 486.4 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.343, allocations: 47.5 kB / 486.4 MB, free: 14.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.307e-06/0.343, allocations: 0 / 486.4 MB, free: 14.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01518/0.3582, allocations: 6.633 MB / 493 MB, free: 7.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.3582, allocations: 68.41 kB / 493.1 MB, free: 7.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.361, allocations: 1.821 MB / 494.9 MB, free: 5.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.3611, allocations: 45.7 kB / 495 MB, free: 5.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.3622, allocations: 1.31 MB / 496.3 MB, free: 4.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.3626, allocations: 452.2 kB / 496.7 MB, free: 4.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004818/0.3631, allocations: 295.4 kB / 497 MB, free: 3.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3632, allocations: 312.9 kB / 497.3 MB, free: 3.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.3645, allocations: 0.7769 MB / 498.1 MB, free: 2.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00159/0.3661, allocations: 1.284 MB / 499.4 MB, free: 1.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002991/0.369, allocations: 2.21 MB / 0.4898 GB, free: 14.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.3691, allocations: 4 kB / 0.4898 GB, free: 14.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004255/0.3733, allocations: 2.483 MB / 0.4923 GB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.3733, allocations: 12 kB / 0.4923 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/0.3734, allocations: 24.11 kB / 0.4923 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006502/0.374, allocations: 247.2 kB / 0.4925 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.3756, allocations: 415.3 kB / 0.4929 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002944/0.3785, allocations: 3.023 MB / 0.4959 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.38, allocations: 131.9 kB / 0.496 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.3802, allocations: 75.94 kB / 0.4961 GB, free: 8.184 MB / 414.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.001354/0.3815, allocations: 0.8188 MB / 0.4969 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.3819, allocations: 198.7 kB / 0.4971 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003461/0.3853, allocations: 2.035 MB / 0.499 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.3854, allocations: 12 kB / 0.4991 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3854, allocations: 7.984 kB / 0.4991 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.3854, allocations: 3.984 kB / 0.4991 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008197/0.3936, allocations: 4.444 MB / 0.5034 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.3936, allocations: 4 kB / 0.5034 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.3947, allocations: 263.6 kB / 0.5037 GB, free: 284 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005478/0.3953, allocations: 203.3 kB / 0.5039 GB, free: 68 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.83e-05/0.3954, allocations: 27.98 kB / 0.5039 GB, free: 40 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.3981, allocations: 3 MB / 0.5068 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3981, allocations: 12 kB / 0.5068 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/0.4031, allocations: 3.136 MB / 0.5099 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.4042, allocations: 358.6 kB / 0.5102 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.4045, allocations: 27.94 kB / 0.5103 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009502/0.4055, allocations: 95.86 kB / 0.5104 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.4057, allocations: 92.84 kB / 0.5104 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.1e-05/0.4057, allocations: 32 kB / 0.5105 GB, free: 9.008 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.4077, allocations: 1.224 MB / 0.5117 GB, free: 7.793 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4077, allocations: 0 / 0.5117 GB, free: 7.793 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00159/0.4093, allocations: 491.9 kB / 0.5121 GB, free: 7.312 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.005276/0.4145, allocations: 3.79 MB / 0.5158 GB, free: 3.457 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003644/0.4182, allocations: 2.114 MB / 0.5179 GB, free: 1.316 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4182, allocations: 4 kB / 0.5179 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.42, allocations: 1.118 MB / 0.519 GB, free: 164 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.4223, allocations: 0.5062 MB / 0.5195 GB, free: 15.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2122/0.6346, allocations: 18.78 MB / 0.5378 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002256/0.6368, allocations: 1.441 MB / 0.5392 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00159/0.6384, allocations: 0.4949 MB / 0.5397 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/0.6396, allocations: 1.016 MB / 0.5407 GB, free: 100.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/0.6396, allocations: 2.516 kB / 0.5407 GB, free: 100.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0864/0.726, allocations: 49.92 MB / 0.5895 GB, free: 55.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.19, allocations: 15 kB / 0.5895 GB, free: 55.82 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 18.789875811024103]