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.00163/0.00163, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001899/0.001899, allocations: 188 kB / 23.72 MB, free: 4.719 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.404/1.404, allocations: 225.7 MB / 252.5 MB, free: 13.02 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.001736/0.001736, allocations: 47.92 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2495, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01442/0.264, allocations: 11.02 MB / 433.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007883/0.2718, allocations: 3.629 MB / 437.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.2737, allocations: 87.38 kB / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.2765, allocations: 0.8814 MB / 438.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003467/0.2799, allocations: 0.9243 MB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.2815, allocations: 459.2 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004675/0.2862, allocations: 2.945 MB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003407/0.2896, allocations: 1.56 MB / 444.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002514/0.2921, allocations: 1.413 MB / 445.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003242/0.2953, allocations: 1.798 MB / 447.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.2964, allocations: 372 kB / 447.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00149/0.2979, allocations: 487.8 kB / 448.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001629/0.2995, allocations: 1.087 MB / 449.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003157/0.3027, allocations: 1.672 MB / 451 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007083/0.3098, allocations: 4.897 MB / 455.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3098, allocations: 0 / 455.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3098, allocations: 3.938 kB / 455.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001943/0.31, allocations: 0 / 455.9 MB, free: 13.22 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.009645/0.3196, allocations: 3.405 MB / 459.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.3197, allocations: 8.031 kB / 459.3 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009904/0.3206, allocations: 363 kB / 459.6 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001393/0.322, allocations: 350.9 kB / 460 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004516/0.3266, allocations: 1.752 MB / 461.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.3268, allocations: 193.2 kB / 461.9 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006511/0.3274, allocations: 251.9 kB / 462.1 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007491/0.3349, allocations: 3.275 MB / 465.4 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.335, allocations: 15.98 kB / 465.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003758/0.3354, allocations: 96 kB / 465.5 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001944/0.3356, allocations: 128.9 kB / 465.7 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005719/0.3413, allocations: 2.748 MB / 468.4 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01868/0.36, allocations: 10.22 MB / 478.6 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.362, allocations: 1.073 MB / 479.7 MB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.3634, allocations: 0.7032 MB / 480.4 MB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/0.3636, allocations: 54.05 kB / 480.5 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.3637, allocations: 39.56 kB / 480.5 MB, free: 3.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.925e-06/0.3637, allocations: 0 / 480.5 MB, free: 3.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01637/0.38, allocations: 6.648 MB / 487.1 MB, free: 13.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.3801, allocations: 64.41 kB / 487.2 MB, free: 13.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003456/0.3836, allocations: 1.797 MB / 489 MB, free: 11.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.3837, allocations: 45.7 kB / 489.1 MB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.3849, allocations: 1.294 MB / 490.3 MB, free: 10.06 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005378/0.3854, allocations: 456.2 kB / 490.8 MB, free: 9.613 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005922/0.386, allocations: 295.4 kB / 491.1 MB, free: 9.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3861, allocations: 305.1 kB / 491.4 MB, free: 9.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.3875, allocations: 0.7769 MB / 492.2 MB, free: 8.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.3892, allocations: 1.292 MB / 493.4 MB, free: 6.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/0.3926, allocations: 2.206 MB / 495.7 MB, free: 4.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/0.3926, allocations: 4 kB / 495.7 MB, free: 4.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004675/0.3972, allocations: 2.495 MB / 498.2 MB, free: 1.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.3973, allocations: 12 kB / 498.2 MB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/0.3973, allocations: 16 kB / 498.2 MB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007136/0.398, allocations: 243.2 kB / 498.4 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.3996, allocations: 419.5 kB / 498.8 MB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003117/0.4027, allocations: 3.016 MB / 0.4901 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.4043, allocations: 135.8 kB / 0.4902 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002108/0.4045, allocations: 71.94 kB / 0.4903 GB, free: 13.62 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.001634/0.4061, allocations: 0.8175 MB / 0.4911 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.4067, allocations: 202.7 kB / 0.4913 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00395/0.4106, allocations: 2.039 MB / 0.4933 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.4106, allocations: 12 kB / 0.4933 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.4106, allocations: 7.938 kB / 0.4933 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.987e-05/0.4107, allocations: 7.969 kB / 0.4933 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009526/0.4202, allocations: 4.705 MB / 0.4979 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.4202, allocations: 4.062 kB / 0.4979 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.4214, allocations: 263.6 kB / 0.4981 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006124/0.422, allocations: 203.2 kB / 0.4983 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.4221, allocations: 27.98 kB / 0.4984 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003051/0.4251, allocations: 3.015 MB / 0.5013 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4251, allocations: 4 kB / 0.5013 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005373/0.4305, allocations: 3.14 MB / 0.5044 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.4318, allocations: 354.6 kB / 0.5047 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004895/0.4323, allocations: 27.94 kB / 0.5047 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.4335, allocations: 95.86 kB / 0.5048 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.4337, allocations: 84.78 kB / 0.5049 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-05/0.4338, allocations: 32 kB / 0.5049 GB, free: 14.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002478/0.4363, allocations: 1.228 MB / 0.5061 GB, free: 12.96 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4363, allocations: 0 / 0.5061 GB, free: 12.96 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002029/0.4383, allocations: 491.9 kB / 0.5066 GB, free: 12.48 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.006055/0.4444, allocations: 3.784 MB / 0.5103 GB, free: 8.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004132/0.4485, allocations: 2.126 MB / 0.5124 GB, free: 6.469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4485, allocations: 64 / 0.5124 GB, free: 6.469 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.4505, allocations: 1.118 MB / 0.5135 GB, free: 5.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/0.4535, allocations: 0.492 MB / 0.514 GB, free: 4.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03602/0.4895, allocations: 18.79 MB / 0.5323 GB, free: 1.289 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002733/0.4923, allocations: 2.01 MB / 0.5343 GB, free: 15.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001716/0.494, allocations: 0.4999 MB / 0.5348 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/0.4957, allocations: 1.007 MB / 0.5357 GB, free: 13.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4957, allocations: 0 / 0.5357 GB, free: 13.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.296/0.7917, allocations: 47.57 MB / 0.5822 GB, free: 100 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15/15.79, allocations: 11.08 kB / 0.5822 GB, free: 100 MB / 462.1 MB " [Timeout remaining time 644] (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: 21.285915006883442]