Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.00164/0.00164, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001858/0.001858, allocations: 213.3 kB / 23.72 MB, free: 4.531 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.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.SMR_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2298, allocations: 53.37 MB / 431.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01192/0.2417, allocations: 9.054 MB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007181/0.2489, allocations: 3.135 MB / 443.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001881/0.2508, allocations: 71.5 kB / 443.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002259/0.253, allocations: 0.6985 MB / 444 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003923/0.2569, allocations: 0.8816 MB / 444.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.2582, allocations: 435.4 kB / 445.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004865/0.2631, allocations: 2.988 MB / 448.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.2655, allocations: 1.376 MB / 449.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002809/0.2683, allocations: 1.394 MB / 451.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003137/0.2714, allocations: 1.744 MB / 452.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007264/0.2722, allocations: 352 kB / 453.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.2733, allocations: 471.8 kB / 453.7 MB, free: 88 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.2746, allocations: 1.036 MB / 454.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001779/0.2763, allocations: 1.299 MB / 456 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005672/0.282, allocations: 4.745 MB / 460.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.282, allocations: 0 / 460.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.282, allocations: 0 / 460.7 MB, free: 8.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001053/0.2821, allocations: 0 / 460.7 MB, free: 8.98 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007161/0.2893, allocations: 3.28 MB / 464 MB, free: 5.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.2893, allocations: 12.03 kB / 464 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004786/0.2898, allocations: 337.6 kB / 464.4 MB, free: 5.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.291, allocations: 374.9 kB / 464.7 MB, free: 4.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003972/0.2949, allocations: 1.717 MB / 466.4 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.2952, allocations: 180.6 kB / 466.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/0.2956, allocations: 228 kB / 466.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006285/0.3019, allocations: 3.237 MB / 470.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.302, allocations: 11.95 kB / 470.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000224/0.3022, allocations: 92 kB / 470.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.3023, allocations: 108.6 kB / 470.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004964/0.3073, allocations: 2.7 MB / 473 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01764/0.3249, allocations: 8.738 MB / 481.7 MB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002841/0.3278, allocations: 1.414 MB / 483.1 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002109/0.3299, allocations: 1.039 MB / 484.2 MB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002518/0.3301, allocations: 48.95 kB / 484.2 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.3302, allocations: 43.56 kB / 484.3 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.356e-06/0.3302, allocations: 0 / 484.3 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01516/0.3453, allocations: 6.351 MB / 490.6 MB, free: 10.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.3454, allocations: 64.72 kB / 490.7 MB, free: 10.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/0.3482, allocations: 1.786 MB / 492.5 MB, free: 8.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.3483, allocations: 45.7 kB / 492.5 MB, free: 8.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.3493, allocations: 1.186 MB / 493.7 MB, free: 7.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005001/0.3498, allocations: 480 kB / 494.2 MB, free: 6.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005151/0.3503, allocations: 287.5 kB / 494.5 MB, free: 6.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3505, allocations: 305.1 kB / 494.7 MB, free: 6.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.3519, allocations: 0.7964 MB / 495.5 MB, free: 5.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.3536, allocations: 1.197 MB / 496.7 MB, free: 4.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/0.3568, allocations: 2.101 MB / 498.8 MB, free: 1.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.3568, allocations: 4 kB / 498.8 MB, free: 1.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004738/0.3616, allocations: 2.596 MB / 0.4897 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.3616, allocations: 15.94 kB / 0.4897 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.3616, allocations: 12.34 kB / 0.4897 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.3627, allocations: 415.1 kB / 0.4901 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/0.3641, allocations: 367.4 kB / 0.4905 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007879/0.372, allocations: 6.727 MB / 0.497 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.3736, allocations: 107.8 kB / 0.4971 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/0.3737, allocations: 60 kB / 0.4972 GB, free: 7.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001643/0.3754, allocations: 0.8044 MB / 0.498 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005086/0.3759, allocations: 198.7 kB / 0.4982 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004545/0.3804, allocations: 2.3 MB / 0.5004 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.3804, allocations: 15.94 kB / 0.5004 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3805, allocations: 4 kB / 0.5004 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.3805, allocations: 7.984 kB / 0.5004 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009832/0.3903, allocations: 4.725 MB / 0.5051 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.3903, allocations: 4.406 kB / 0.5051 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.3914, allocations: 235.7 kB / 0.5053 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.3926, allocations: 458.9 kB / 0.5057 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.3927, allocations: 35.98 kB / 0.5058 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009034/0.4018, allocations: 8.179 MB / 0.5137 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4018, allocations: 4 kB / 0.5137 GB, free: 5.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005954/0.4077, allocations: 3.439 MB / 0.5171 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.409, allocations: 366.6 kB / 0.5175 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002721/0.4092, allocations: 35.98 kB / 0.5175 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009639/0.4102, allocations: 87.91 kB / 0.5176 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002997/0.4105, allocations: 120.7 kB / 0.5177 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.4106, allocations: 43.98 kB / 0.5177 GB, free: 1.555 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002001/0.4126, allocations: 1.203 MB / 0.5189 GB, free: 368 kB / 430.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4126, allocations: 0 / 0.5189 GB, free: 368 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002081/0.4147, allocations: 0.5078 MB / 0.5194 GB, free: 15.85 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.006411/0.4211, allocations: 4.091 MB / 0.5234 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004569/0.4257, allocations: 2.311 MB / 0.5257 GB, free: 9.324 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/0.4257, allocations: 4 kB / 0.5257 GB, free: 9.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/0.4285, allocations: 1.559 MB / 0.5272 GB, free: 7.711 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.4311, allocations: 486.2 kB / 0.5276 GB, free: 7.246 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2291/0.6602, allocations: 19.39 MB / 0.5466 GB, free: 97.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.6614, allocations: 1.443 MB / 0.548 GB, free: 97.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.6625, allocations: 445.5 kB / 0.5484 GB, free: 96.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009695/0.6635, allocations: 0.9226 MB / 0.5493 GB, free: 95.89 MB / 446.1 MB Notification: Performance of SimCode: time 2.164e-06/0.6635, allocations: 0 / 0.5493 GB, free: 95.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/0.7837, allocations: 52.02 MB / 0.6001 GB, free: 45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.44, allocations: 7.922 kB / 0.6001 GB, free: 44.99 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.1128349879873]