Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001245/0.001245, allocations: 122.4 kB / 18.5 MB, free: 4.531 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.001341/0.001341, allocations: 210.4 kB / 21.46 MB, free: 1.582 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.456/1.456, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09746, allocations: 53.38 MB / 427.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.1962/0.2937, allocations: 10.28 MB / 437.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006179/0.2999, allocations: 3.323 MB / 440.7 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.3017, allocations: 74.03 kB / 440.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.3036, allocations: 0.7382 MB / 441.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002874/0.3065, allocations: 0.8738 MB / 442.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.3076, allocations: 424.7 kB / 442.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003534/0.3111, allocations: 2.999 MB / 445.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002129/0.3132, allocations: 1.784 MB / 447.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002207/0.3154, allocations: 1.394 MB / 449 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.3182, allocations: 1.747 MB / 450.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005886/0.3188, allocations: 355.6 kB / 451 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.32, allocations: 467.9 kB / 451.5 MB, free: 15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.3213, allocations: 1.026 MB / 452.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.3235, allocations: 1.614 MB / 454.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00691/0.3304, allocations: 4.718 MB / 458.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3304, allocations: 0 / 458.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3304, allocations: 0 / 458.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001328/0.3305, allocations: 0 / 458.9 MB, free: 10.88 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.009376/0.3399, allocations: 3.353 MB / 462.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.34, allocations: 9.594 kB / 462.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.697e-05/0.34, allocations: 69.41 kB / 462.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006042/0.3407, allocations: 338.6 kB / 462.6 MB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.342, allocations: 383 kB / 463 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.3459, allocations: 1.785 MB / 464.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/0.346, allocations: 183.4 kB / 465 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004358/0.3465, allocations: 227.8 kB / 465.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006102/0.3526, allocations: 3.137 MB / 468.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.766e-05/0.3526, allocations: 9.891 kB / 468.3 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002516/0.3529, allocations: 96.56 kB / 468.4 MB, free: 4.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.353, allocations: 112.9 kB / 468.5 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005247/0.3583, allocations: 2.691 MB / 471.2 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01771/0.376, allocations: 9.643 MB / 480.9 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/0.3789, allocations: 2.092 MB / 483 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.3809, allocations: 1.042 MB / 484 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003334/0.3812, allocations: 203.2 kB / 484.2 MB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.3813, allocations: 43.56 kB / 484.2 MB, free: 6.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.995e-06/0.3813, allocations: 4 kB / 484.2 MB, free: 6.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01602/0.3973, allocations: 6.878 MB / 491.1 MB, free: 15.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.3974, allocations: 64.72 kB / 491.2 MB, free: 15.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/0.4003, allocations: 1.763 MB / 493 MB, free: 13.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.4005, allocations: 45.7 kB / 493 MB, free: 13.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009953/0.4014, allocations: 1.194 MB / 494.2 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005319/0.402, allocations: 476 kB / 494.7 MB, free: 12.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005025/0.4025, allocations: 287.5 kB / 494.9 MB, free: 11.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4026, allocations: 305.1 kB / 495.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.4041, allocations: 0.7886 MB / 496 MB, free: 10.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.4059, allocations: 1.209 MB / 497.2 MB, free: 9.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/0.4093, allocations: 2.098 MB / 499.3 MB, free: 7.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.4094, allocations: 4 kB / 499.3 MB, free: 7.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005412/0.4148, allocations: 2.675 MB / 0.4902 GB, free: 4.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.4148, allocations: 12.34 kB / 0.4903 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.4148, allocations: 16 kB / 0.4903 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.4159, allocations: 415.6 kB / 0.4907 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.4174, allocations: 363.4 kB / 0.491 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007992/0.4254, allocations: 7.078 MB / 0.4979 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.4271, allocations: 107.8 kB / 0.498 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.4273, allocations: 60 kB / 0.4981 GB, free: 11.95 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.001516/0.4288, allocations: 0.8016 MB / 0.4989 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004167/0.4292, allocations: 194.8 kB / 0.4991 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00442/0.4336, allocations: 2.371 MB / 0.5014 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4336, allocations: 12 kB / 0.5014 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.4337, allocations: 8 kB / 0.5014 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.4337, allocations: 3.984 kB / 0.5014 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009116/0.4428, allocations: 5.101 MB / 0.5064 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.4428, allocations: 0 / 0.5064 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.4438, allocations: 239.6 kB / 0.5066 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.445, allocations: 455.5 kB / 0.507 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4451, allocations: 36.84 kB / 0.5071 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008876/0.454, allocations: 8.636 MB / 0.5155 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.454, allocations: 7.938 kB / 0.5155 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/0.46, allocations: 3.519 MB / 0.5189 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.4611, allocations: 439.8 kB / 0.5194 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.4614, allocations: 35.98 kB / 0.5194 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009771/0.4624, allocations: 87.91 kB / 0.5195 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/0.4626, allocations: 112.7 kB / 0.5196 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.995e-05/0.4627, allocations: 43.98 kB / 0.5196 GB, free: 5.016 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001959/0.4647, allocations: 1.207 MB / 0.5208 GB, free: 3.816 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4647, allocations: 0 / 0.5208 GB, free: 3.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001972/0.4667, allocations: 0.5078 MB / 0.5213 GB, free: 3.309 MB / 430.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.006438/0.4731, allocations: 4.169 MB / 0.5254 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004413/0.4775, allocations: 2.395 MB / 0.5277 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.4775, allocations: 4.062 kB / 0.5277 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002843/0.4804, allocations: 1.551 MB / 0.5292 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.4831, allocations: 483.1 kB / 0.5297 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03462/0.5177, allocations: 19.54 MB / 0.5488 GB, free: 6.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001975/0.5197, allocations: 2.005 MB / 0.5507 GB, free: 4.227 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001324/0.521, allocations: 451.4 kB / 0.5512 GB, free: 3.781 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001325/0.5223, allocations: 0.9211 MB / 0.5521 GB, free: 2.859 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5223, allocations: 0 / 0.5521 GB, free: 2.859 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/0.6243, allocations: 48.45 MB / 0.5994 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.05/26.67, allocations: 15.92 kB / 0.5994 GB, free: 2.797 MB / 0.4981 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.145935598993674] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]'] 26.840407437004615 26.854531897 26.521203424 Calling exit ...