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.001712/0.001712, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002034/0.002034, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001576/0.001576, allocations: 43.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3389, allocations: 53.36 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01479/0.3537, allocations: 10.33 MB / 441.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.3617, allocations: 3.337 MB / 444.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002659/0.3644, allocations: 71.5 kB / 444.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002328/0.3667, allocations: 0.7453 MB / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003807/0.3705, allocations: 0.8855 MB / 446.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.3718, allocations: 447.2 kB / 446.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00434/0.3762, allocations: 2.988 MB / 449.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002579/0.3787, allocations: 1.38 MB / 451.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002802/0.3815, allocations: 1.39 MB / 452.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003335/0.3849, allocations: 1.748 MB / 454.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006854/0.3856, allocations: 352 kB / 454.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.3867, allocations: 467.8 kB / 455.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.3879, allocations: 1.04 MB / 456.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.3901, allocations: 1.614 MB / 457.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00651/0.3966, allocations: 4.706 MB / 462.6 MB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3966, allocations: 0 / 462.6 MB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3966, allocations: 3.938 kB / 462.6 MB, free: 7.195 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001201/0.3967, allocations: 0 / 462.6 MB, free: 7.195 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.008112/0.4048, allocations: 3.287 MB / 465.9 MB, free: 3.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.4049, allocations: 12.03 kB / 465.9 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005857/0.4055, allocations: 337.6 kB / 466.2 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.4068, allocations: 378.9 kB / 466.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/0.4108, allocations: 1.713 MB / 468.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.411, allocations: 180.6 kB / 468.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004235/0.4114, allocations: 228 kB / 468.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005773/0.4172, allocations: 3.137 MB / 471.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.406e-05/0.4173, allocations: 11.94 kB / 471.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.4175, allocations: 96 kB / 472 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.4176, allocations: 104.6 kB / 472.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005115/0.4227, allocations: 2.696 MB / 474.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.4405, allocations: 9.494 MB / 484.3 MB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.4431, allocations: 1.41 MB / 485.7 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/0.4451, allocations: 1.039 MB / 486.7 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002607/0.4453, allocations: 53.88 kB / 486.8 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.4454, allocations: 51.5 kB / 486.8 MB, free: 14.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.867e-06/0.4454, allocations: 0 / 486.8 MB, free: 14.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=131): time 0.01456/0.4599, allocations: 6.347 MB / 493.2 MB, free: 8.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.46, allocations: 72.66 kB / 493.2 MB, free: 8.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002899/0.4629, allocations: 1.759 MB / 495 MB, free: 6.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.463, allocations: 49.7 kB / 495 MB, free: 6.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.4643, allocations: 1.186 MB / 496.2 MB, free: 5.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004597/0.4647, allocations: 480 kB / 496.7 MB, free: 4.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004765/0.4652, allocations: 287.5 kB / 497 MB, free: 4.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4653, allocations: 301.1 kB / 497.3 MB, free: 3.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.4668, allocations: 0.7964 MB / 498.1 MB, free: 3.156 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.4685, allocations: 1.197 MB / 499.3 MB, free: 1.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003259/0.4717, allocations: 2.094 MB / 0.4896 GB, free: 15.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.4717, allocations: 4 kB / 0.4896 GB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005281/0.477, allocations: 2.6 MB / 0.4921 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.477, allocations: 8 kB / 0.4922 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.4771, allocations: 12.34 kB / 0.4922 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.4781, allocations: 415.1 kB / 0.4926 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.4795, allocations: 363.4 kB / 0.4929 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007972/0.4874, allocations: 6.785 MB / 0.4995 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.489, allocations: 107.8 kB / 0.4996 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.4892, allocations: 64 kB / 0.4997 GB, free: 4.816 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.001897/0.4911, allocations: 0.7939 MB / 0.5005 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004902/0.4915, allocations: 190.8 kB / 0.5007 GB, free: 3.824 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004381/0.4959, allocations: 2.296 MB / 0.5029 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.4959, allocations: 12 kB / 0.5029 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.496, allocations: 4 kB / 0.5029 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.496, allocations: 11.97 kB / 0.5029 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009704/0.5057, allocations: 5.001 MB / 0.5078 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.5057, allocations: 8 kB / 0.5078 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009847/0.5067, allocations: 235.6 kB / 0.508 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.5078, allocations: 447.5 kB / 0.5085 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-05/0.5079, allocations: 35.98 kB / 0.5085 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009382/0.5173, allocations: 8.23 MB / 0.5165 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.5173, allocations: 4 kB / 0.5165 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006459/0.5238, allocations: 3.447 MB / 0.5199 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.5252, allocations: 366.7 kB / 0.5203 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003863/0.5256, allocations: 32 kB / 0.5203 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009823/0.5266, allocations: 83.89 kB / 0.5204 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003332/0.5269, allocations: 124.7 kB / 0.5205 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-05/0.527, allocations: 36 kB / 0.5205 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.5291, allocations: 1.21 MB / 0.5217 GB, free: 13.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5291, allocations: 0 / 0.5217 GB, free: 13.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001817/0.5309, allocations: 0.4999 MB / 0.5222 GB, free: 13.1 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.006555/0.5374, allocations: 4.095 MB / 0.5262 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004581/0.542, allocations: 2.316 MB / 0.5285 GB, free: 6.566 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.542, allocations: 4.25 kB / 0.5285 GB, free: 6.562 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/0.5449, allocations: 1.547 MB / 0.53 GB, free: 4.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/0.5474, allocations: 496.7 kB / 0.5304 GB, free: 4.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2394/0.7868, allocations: 19.4 MB / 0.5494 GB, free: 96.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.788, allocations: 2 MB / 0.5513 GB, free: 94.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001155/0.7892, allocations: 446.6 kB / 0.5518 GB, free: 94.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009114/0.7901, allocations: 0.9264 MB / 0.5527 GB, free: 93.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.774e-06/0.7901, allocations: 0 / 0.5527 GB, free: 93.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09535/0.8854, allocations: 49.66 MB / 0.6012 GB, free: 44.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.85/28.73, allocations: 3.922 kB / 0.6012 GB, free: 44.66 MB / 446.1 MB " [Timeout remaining time 631] (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: 31.56714599998668]