Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 109.4 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 225.6 MB / 244.8 MB, free: 14.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 194.9 kB / 299.8 MB, free: 9.805 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0411/0.0411, allocations: 8.934 MB / 363.6 MB, free: 10.15 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00252/0.00252, allocations: 82.75 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1269, allocations: 54.41 MB / 0.5278 GB, free: 1.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02084/0.1477, allocations: 16.79 MB / 0.5442 GB, free: 452 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.1594, allocations: 5.473 MB / 0.5496 GB, free: 10.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003054/0.1624, allocations: 103.6 kB / 0.5497 GB, free: 10.85 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003689/0.1661, allocations: 1.305 MB / 0.5509 GB, free: 9.535 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005647/0.1718, allocations: 1.672 MB / 0.5526 GB, free: 7.855 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003719/0.1755, allocations: 1.042 MB / 0.5536 GB, free: 6.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.1855, allocations: 5.012 MB / 0.5585 GB, free: 1.785 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005546/0.1911, allocations: 2.941 MB / 0.5613 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004694/0.1958, allocations: 2.278 MB / 0.5636 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005512/0.2013, allocations: 2.689 MB / 0.5662 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002007/0.2033, allocations: 0.6249 MB / 0.5668 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002508/0.2058, allocations: 0.8435 MB / 0.5676 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.2074, allocations: 1.437 MB / 0.569 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003532/0.2109, allocations: 2.656 MB / 0.5716 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009986/0.2209, allocations: 8.14 MB / 0.5796 GB, free: 12.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2209, allocations: 4 kB / 0.5796 GB, free: 12.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2209, allocations: 0 / 0.5796 GB, free: 12.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001876/0.2211, allocations: 0 / 0.5796 GB, free: 12.02 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01454/0.2356, allocations: 5.509 MB / 0.585 GB, free: 6.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.2357, allocations: 12.03 kB / 0.585 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008579/0.2365, allocations: 0.548 MB / 0.5855 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005312/0.2418, allocations: 1.017 MB / 0.5865 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007688/0.2495, allocations: 3.044 MB / 0.5895 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003194/0.2498, allocations: 308.5 kB / 0.5898 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001017/0.2508, allocations: 411.9 kB / 0.5902 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.2628, allocations: 5.221 MB / 0.5953 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.593e-05/0.2629, allocations: 7.953 kB / 0.5953 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003657/0.2633, allocations: 160 kB / 0.5954 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/0.2635, allocations: 172 kB / 0.5956 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009081/0.2725, allocations: 4.462 MB / 0.5999 GB, free: 6.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02887/0.3014, allocations: 16.66 MB / 0.6162 GB, free: 5.777 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008653/0.3101, allocations: 8.247 MB / 0.6243 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00298/0.313, allocations: 1.561 MB / 0.6258 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01065/0.3237, allocations: 4.993 MB / 0.6307 GB, free: 5.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.214e-05/0.3238, allocations: 51.88 kB / 0.6307 GB, free: 5.691 MB / 446.1 MB Notification: Performance of pre-optimization done (n=158): time 3.837e-06/0.3238, allocations: 0 / 0.6307 GB, free: 5.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=161): time 0.01284/0.3366, allocations: 6.198 MB / 0.6368 GB, free: 15.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.3367, allocations: 80.72 kB / 0.6368 GB, free: 15.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/0.341, allocations: 2.29 MB / 0.6391 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.3412, allocations: 49.7 kB / 0.6391 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.3429, allocations: 1.897 MB / 0.641 GB, free: 10.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005698/0.3435, allocations: 0.581 MB / 0.6415 GB, free: 10.38 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006464/0.3441, allocations: 395.9 kB / 0.6419 GB, free: 9.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3442, allocations: 301.1 kB / 0.6422 GB, free: 9.684 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.3458, allocations: 0.8553 MB / 0.643 GB, free: 8.824 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/0.348, allocations: 1.563 MB / 0.6446 GB, free: 6.934 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.352, allocations: 2.562 MB / 0.6471 GB, free: 4.055 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/0.352, allocations: 4 kB / 0.6471 GB, free: 4.051 MB / 462.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005577/0.3576, allocations: 2.909 MB / 0.6499 GB, free: 1.109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.3576, allocations: 12 kB / 0.6499 GB, free: 1.098 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.645e-05/0.3577, allocations: 27.94 kB / 0.65 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003756/0.358, allocations: 121.7 kB / 0.6501 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002021/0.3601, allocations: 0.5423 MB / 0.6506 GB, free: 412 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2977/0.6577, allocations: 2.005 MB / 0.6526 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.66, allocations: 114.4 kB / 0.6527 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.6602, allocations: 99.44 kB / 0.6528 GB, free: 105.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00279/0.663, allocations: 1.194 MB / 0.6539 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000631/0.6637, allocations: 254.9 kB / 0.6542 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004425/0.6681, allocations: 2.444 MB / 0.6566 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.6681, allocations: 16.25 kB / 0.6566 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.6681, allocations: 6.844 kB / 0.6566 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.6681, allocations: 11.45 kB / 0.6566 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009309/0.6774, allocations: 5.789 MB / 0.6622 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.6774, allocations: 0 / 0.6622 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.6786, allocations: 295.1 kB / 0.6625 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000708/0.6793, allocations: 300.2 kB / 0.6628 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.6794, allocations: 43.53 kB / 0.6629 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00506/0.6845, allocations: 6.992 MB / 0.6697 GB, free: 95.45 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6845, allocations: 1.969 kB / 0.6697 GB, free: 95.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004946/0.6894, allocations: 3.574 MB / 0.6732 GB, free: 93.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.6906, allocations: 0.501 MB / 0.6737 GB, free: 93.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002826/0.6909, allocations: 43.5 kB / 0.6737 GB, free: 93.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.692, allocations: 81.95 kB / 0.6738 GB, free: 93.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.6923, allocations: 115.6 kB / 0.6739 GB, free: 93.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.505e-05/0.6924, allocations: 47.25 kB / 0.6739 GB, free: 93.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00218/0.6945, allocations: 1.552 MB / 0.6755 GB, free: 92.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6945, allocations: 0 / 0.6755 GB, free: 92.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002352/0.6969, allocations: 0.6739 MB / 0.6761 GB, free: 92.91 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004823/0.7017, allocations: 4.189 MB / 0.6802 GB, free: 90.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003088/0.7048, allocations: 2.2 MB / 0.6824 GB, free: 88.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.7048, allocations: 4 kB / 0.6824 GB, free: 88.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.7066, allocations: 1.374 MB / 0.6837 GB, free: 87.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.7092, allocations: 0.6025 MB / 0.6843 GB, free: 86.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03454/0.7437, allocations: 24.22 MB / 0.7079 GB, free: 61.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/0.7467, allocations: 2.665 MB / 0.7105 GB, free: 58.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00187/0.7486, allocations: 0.563 MB / 0.7111 GB, free: 58.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001823/0.7504, allocations: 1.472 MB / 0.7125 GB, free: 56.78 MB / 462.1 MB Notification: Performance of SimCode: time 1.853e-06/0.7504, allocations: 0 / 0.7125 GB, free: 56.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1244/0.8748, allocations: 60.13 MB / 0.7713 GB, free: 13.15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.29, allocations: 7.938 kB / 0.7713 GB, free: 13.14 MB / 478.1 MB " [Timeout remaining time 644] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.48381547210738] Failed to read output from testmodel.py, exit status != 0: 15.703077325131744 15.500483123 15.275525509 Calling exit ...