Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.001759/0.001759, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.002162/0.002162, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 51.94 kB / 343 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2373, allocations: 49.13 MB / 392.1 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01056/0.2479, allocations: 10.92 MB / 403.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007459/0.2554, allocations: 3.697 MB / 406.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.2574, allocations: 76.69 kB / 406.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002353/0.2598, allocations: 0.8748 MB / 407.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003053/0.2628, allocations: 0.9074 MB / 408.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.2641, allocations: 463.8 kB / 409.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004095/0.2682, allocations: 2.958 MB / 412 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002706/0.2709, allocations: 1.943 MB / 414 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00227/0.2732, allocations: 1.405 MB / 415.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002909/0.2761, allocations: 1.788 MB / 417.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007601/0.2769, allocations: 378 kB / 417.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.278, allocations: 477.7 kB / 418 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.2792, allocations: 1.083 MB / 419.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002242/0.2815, allocations: 1.668 MB / 420.7 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005904/0.2874, allocations: 4.902 MB / 425.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2874, allocations: 1.531 kB / 425.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2874, allocations: 0 / 425.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.2875, allocations: 4 kB / 425.7 MB, free: 2.672 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007799/0.2953, allocations: 3.463 MB / 429.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.2954, allocations: 11.89 kB / 429.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.585e-05/0.2954, allocations: 73.22 kB / 429.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005561/0.296, allocations: 363 kB / 429.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008634/0.2969, allocations: 350.8 kB / 429.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00316/0.3, allocations: 1.722 MB / 431.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.3002, allocations: 193 kB / 431.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.3006, allocations: 244 kB / 432 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006046/0.3067, allocations: 3.287 MB / 435.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.995e-05/0.3067, allocations: 3.953 kB / 435.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002633/0.307, allocations: 108 kB / 435.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.3071, allocations: 120.9 kB / 435.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005056/0.3122, allocations: 2.748 MB / 438.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.3291, allocations: 10.44 MB / 448.7 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.3312, allocations: 1.281 MB / 450 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.3324, allocations: 0.6954 MB / 450.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003401/0.3327, allocations: 207.1 kB / 450.9 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/0.3328, allocations: 47.5 kB / 451 MB, free: 8.664 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.417e-06/0.3328, allocations: 4 kB / 451 MB, free: 8.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01654/0.3493, allocations: 7.066 MB / 458 MB, free: 1.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.3494, allocations: 68.39 kB / 458.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/0.3522, allocations: 1.793 MB / 459.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.3524, allocations: 45.7 kB / 459.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/0.3534, allocations: 1.314 MB / 461.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004332/0.3539, allocations: 444.2 kB / 461.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.3544, allocations: 299.4 kB / 462 MB, free: 13.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3545, allocations: 309.1 kB / 462.3 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.3558, allocations: 0.7807 MB / 463.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.3574, allocations: 1.285 MB / 464.4 MB, free: 10.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003088/0.3605, allocations: 2.218 MB / 466.6 MB, free: 8.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.3605, allocations: 4 kB / 466.6 MB, free: 8.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004331/0.3649, allocations: 2.483 MB / 469.1 MB, free: 5.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.3649, allocations: 12 kB / 469.1 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.3649, allocations: 16.56 kB / 469.1 MB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00066/0.3656, allocations: 235.3 kB / 469.3 MB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.3671, allocations: 423.3 kB / 469.7 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/0.3702, allocations: 3.25 MB / 473 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.3717, allocations: 127.8 kB / 473.1 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.3719, allocations: 68 kB / 473.2 MB, free: 1.527 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001478/0.3734, allocations: 0.8329 MB / 474 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004291/0.3738, allocations: 194.7 kB / 474.2 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00376/0.3776, allocations: 2.019 MB / 476.2 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3776, allocations: 16 kB / 476.2 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3776, allocations: 7.938 kB / 476.2 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.3776, allocations: 7.969 kB / 476.2 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008168/0.3858, allocations: 4.729 MB / 481 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3858, allocations: 0 / 481 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.3869, allocations: 259.6 kB / 481.2 MB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005735/0.3875, allocations: 219.4 kB / 481.4 MB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.753e-05/0.3876, allocations: 27.98 kB / 481.5 MB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/0.3905, allocations: 3.211 MB / 484.7 MB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3905, allocations: 4 kB / 484.7 MB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00487/0.3954, allocations: 3.132 MB / 487.8 MB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009247/0.3963, allocations: 435.7 kB / 488.2 MB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.3965, allocations: 27.98 kB / 488.3 MB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009567/0.3975, allocations: 95.94 kB / 488.4 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.3977, allocations: 72.89 kB / 488.4 MB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.38e-05/0.3978, allocations: 32 kB / 488.5 MB, free: 1.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002001/0.3998, allocations: 1.231 MB / 489.7 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3998, allocations: 4 kB / 489.7 MB, free: 0.5039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00163/0.4014, allocations: 483.9 kB / 490.2 MB, free: 32 kB / 398.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 (120): * Single equations (assignments): 116 * 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.005398/0.4068, allocations: 3.769 MB / 493.9 MB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003747/0.4105, allocations: 2.267 MB / 496.2 MB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.4105, allocations: 0 / 496.2 MB, free: 9.855 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.4124, allocations: 1.274 MB / 497.5 MB, free: 8.512 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.4148, allocations: 0.4923 MB / 498 MB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03027/0.4451, allocations: 18.77 MB / 0.5046 GB, free: 4.492 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001981/0.4471, allocations: 2.006 MB / 0.5066 GB, free: 2.453 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001463/0.4486, allocations: 0.496 MB / 0.5071 GB, free: 1.953 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.45, allocations: 1.011 MB / 0.5081 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.45, allocations: 0 / 0.5081 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09522/0.5452, allocations: 46.38 MB / 0.5534 GB, free: 2.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.14, allocations: 19.48 kB / 0.5534 GB, free: 2.41 MB / 478.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 21.461283084005117]