Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.001496/0.001496, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.0016/0.0016, allocations: 209.4 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.443/1.443, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.84 kB / 378.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2652, allocations: 53.39 MB / 431.9 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01273/0.278, allocations: 9.653 MB / 441.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007302/0.2853, allocations: 3.47 MB / 445 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.287, allocations: 83.44 kB / 445.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002436/0.2894, allocations: 0.8112 MB / 445.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.2927, allocations: 0.9204 MB / 446.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.294, allocations: 471.3 kB / 447.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003939/0.2979, allocations: 2.949 MB / 450.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002352/0.3003, allocations: 1.572 MB / 451.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.3025, allocations: 1.413 MB / 453.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002934/0.3054, allocations: 1.806 MB / 455 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000675/0.3061, allocations: 376 kB / 455.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.3072, allocations: 475.8 kB / 455.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3085, allocations: 1.091 MB / 457 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002076/0.3106, allocations: 1.35 MB / 458.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005805/0.3164, allocations: 4.935 MB / 463.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3164, allocations: 0 / 463.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3164, allocations: 0 / 463.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001004/0.3165, allocations: 0 / 463.3 MB, free: 6.969 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.0072/0.3237, allocations: 3.405 MB / 466.7 MB, free: 3.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.3238, allocations: 12.03 kB / 466.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.796e-05/0.3238, allocations: 65.22 kB / 466.7 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004816/0.3243, allocations: 370.9 kB / 467.1 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009993/0.3253, allocations: 362.8 kB / 467.5 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003321/0.3287, allocations: 1.748 MB / 469.2 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.3288, allocations: 193 kB / 469.4 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004061/0.3292, allocations: 263.9 kB / 469.6 MB, free: 484 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005901/0.3351, allocations: 3.355 MB / 473 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.323e-05/0.3352, allocations: 3.953 kB / 473 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002465/0.3354, allocations: 107.9 kB / 473.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.3356, allocations: 124.9 kB / 473.2 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004802/0.3404, allocations: 2.748 MB / 476 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0166/0.357, allocations: 9.429 MB / 485.4 MB, free: 232 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.3588, allocations: 1.074 MB / 486.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.3601, allocations: 0.7069 MB / 487.2 MB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002518/0.3603, allocations: 52.97 kB / 487.2 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.3604, allocations: 39.56 kB / 487.3 MB, free: 14.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.546e-06/0.3604, allocations: 0 / 487.3 MB, free: 14.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01623/0.3766, allocations: 6.645 MB / 493.9 MB, free: 7.656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.3767, allocations: 68.34 kB / 494 MB, free: 7.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.3803, allocations: 1.794 MB / 495.8 MB, free: 5.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.3804, allocations: 49.7 kB / 495.8 MB, free: 5.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.3815, allocations: 1.31 MB / 497.1 MB, free: 4.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004847/0.382, allocations: 444.2 kB / 497.6 MB, free: 3.969 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006133/0.3826, allocations: 295.5 kB / 497.9 MB, free: 3.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3828, allocations: 309 kB / 498.2 MB, free: 3.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001396/0.3842, allocations: 0.773 MB / 498.9 MB, free: 2.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/0.3859, allocations: 1.296 MB / 0.4885 GB, free: 1.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003291/0.3892, allocations: 2.202 MB / 0.4907 GB, free: 14.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.662e-05/0.3892, allocations: 7.938 kB / 0.4907 GB, free: 14.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004658/0.3939, allocations: 2.479 MB / 0.4931 GB, free: 12.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.3939, allocations: 12 kB / 0.4931 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/0.394, allocations: 16.78 kB / 0.4931 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007341/0.3947, allocations: 251.2 kB / 0.4934 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.3963, allocations: 419.3 kB / 0.4938 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003091/0.3994, allocations: 3.019 MB / 0.4967 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.4011, allocations: 135.7 kB / 0.4968 GB, free: 8.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002309/0.4013, allocations: 72.06 kB / 0.4969 GB, free: 7.98 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.001663/0.4029, allocations: 0.8197 MB / 0.4977 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005577/0.4035, allocations: 194.7 kB / 0.4979 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/0.4075, allocations: 2.046 MB / 0.4999 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.4076, allocations: 12 kB / 0.4999 GB, free: 4.883 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.4076, allocations: 4 kB / 0.4999 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-05/0.4076, allocations: 11.91 kB / 0.4999 GB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009684/0.4173, allocations: 4.445 MB / 0.5043 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.4173, allocations: 7.984 kB / 0.5043 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.4185, allocations: 263.6 kB / 0.5045 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006259/0.4191, allocations: 199.3 kB / 0.5047 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.4192, allocations: 27.94 kB / 0.5047 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.4222, allocations: 2.992 MB / 0.5077 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.788e-06/0.4222, allocations: 4 kB / 0.5077 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005657/0.4278, allocations: 3.148 MB / 0.5107 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.4289, allocations: 362.5 kB / 0.5111 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005208/0.4295, allocations: 27.94 kB / 0.5111 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.4307, allocations: 91.88 kB / 0.5112 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.431, allocations: 92.77 kB / 0.5113 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.35e-05/0.431, allocations: 32 kB / 0.5113 GB, free: 8.805 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002629/0.4337, allocations: 1.228 MB / 0.5125 GB, free: 7.586 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4337, allocations: 0 / 0.5125 GB, free: 7.586 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002038/0.4357, allocations: 491.9 kB / 0.513 GB, free: 7.105 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.005735/0.4414, allocations: 3.776 MB / 0.5167 GB, free: 3.258 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00391/0.4454, allocations: 2.116 MB / 0.5187 GB, free: 1.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.4454, allocations: 0 / 0.5187 GB, free: 1.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/0.4473, allocations: 1.128 MB / 0.5198 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.4501, allocations: 0.4911 MB / 0.5203 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2252/0.6753, allocations: 18.79 MB / 0.5387 GB, free: 101.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.6771, allocations: 1.438 MB / 0.5401 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.6784, allocations: 0.5057 MB / 0.5406 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/0.6795, allocations: 1.014 MB / 0.5416 GB, free: 100 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6795, allocations: 0 / 0.5416 GB, free: 100 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08012/0.7596, allocations: 49.35 MB / 0.5897 GB, free: 55.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.8, allocations: 10.73 kB / 0.5898 GB, free: 55.94 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.73730354604777]