Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.001707/0.001707, allocations: 106 kB / 16.45 MB, free: 6.445 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.497/1.497, allocations: 225.6 MB / 244.8 MB, free: 14.17 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.001607/0.001607, allocations: 188.2 kB / 299.8 MB, free: 9.824 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.0406/0.0406, allocations: 8.927 MB / 363.6 MB, free: 10.17 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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002457/0.002457, allocations: 82.39 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1138, allocations: 54.4 MB / 0.5278 GB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.02033/0.1341, allocations: 15.88 MB / 0.5433 GB, free: 1.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01284/0.1469, allocations: 5.29 MB / 0.5485 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004117/0.1511, allocations: 95.69 kB / 0.5486 GB, free: 11.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00432/0.1554, allocations: 1.251 MB / 0.5498 GB, free: 10.72 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006456/0.1618, allocations: 1.596 MB / 0.5514 GB, free: 9.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002871/0.1647, allocations: 0.9775 MB / 0.5523 GB, free: 8.141 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008088/0.1728, allocations: 4.711 MB / 0.5569 GB, free: 3.414 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004124/0.1769, allocations: 2.459 MB / 0.5593 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003511/0.1804, allocations: 2.107 MB / 0.5614 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004125/0.1846, allocations: 2.475 MB / 0.5638 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001115/0.1857, allocations: 0.5742 MB / 0.5643 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.1876, allocations: 0.777 MB / 0.5651 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001464/0.189, allocations: 1.305 MB / 0.5664 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00686/0.1959, allocations: 2.443 MB / 0.5688 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01214/0.208, allocations: 7.525 MB / 0.5761 GB, free: 15.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.208, allocations: 0 / 0.5761 GB, free: 15.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.208, allocations: 0 / 0.5761 GB, free: 15.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002451/0.2083, allocations: 0 / 0.5761 GB, free: 15.62 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01765/0.2259, allocations: 5.078 MB / 0.5811 GB, free: 10.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/0.226, allocations: 8.031 kB / 0.5811 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001204/0.2272, allocations: 0.557 MB / 0.5816 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005267/0.2325, allocations: 0.9702 MB / 0.5826 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007292/0.2397, allocations: 2.846 MB / 0.5854 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.24, allocations: 279.8 kB / 0.5856 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.2412, allocations: 367.9 kB / 0.586 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.2541, allocations: 4.776 MB / 0.5906 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/0.2542, allocations: 3.953 kB / 0.5906 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00048/0.2547, allocations: 155.9 kB / 0.5908 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/0.2549, allocations: 155.3 kB / 0.5909 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009274/0.2642, allocations: 4.046 MB / 0.5949 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0278/0.292, allocations: 15.61 MB / 0.6101 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007357/0.2994, allocations: 6.777 MB / 0.6167 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/0.3022, allocations: 1.391 MB / 0.6181 GB, free: 3.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008539/0.3108, allocations: 4.157 MB / 0.6222 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.55e-05/0.3108, allocations: 51.81 kB / 0.6222 GB, free: 14.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.366e-06/0.3108, allocations: 0 / 0.6222 GB, free: 14.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01401/0.3248, allocations: 6.405 MB / 0.6285 GB, free: 8.156 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.3249, allocations: 68.72 kB / 0.6285 GB, free: 8.078 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/0.3284, allocations: 2.187 MB / 0.6307 GB, free: 5.859 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.3286, allocations: 49.7 kB / 0.6307 GB, free: 5.805 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00138/0.33, allocations: 1.783 MB / 0.6325 GB, free: 4.004 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005441/0.3305, allocations: 0.5733 MB / 0.633 GB, free: 3.426 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006102/0.3311, allocations: 408.1 kB / 0.6334 GB, free: 3.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3313, allocations: 309.1 kB / 0.6337 GB, free: 2.715 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.3326, allocations: 0.8242 MB / 0.6345 GB, free: 1.887 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/0.3347, allocations: 1.586 MB / 0.6361 GB, free: 15.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003649/0.3383, allocations: 2.588 MB / 0.6386 GB, free: 13.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.3383, allocations: 8 kB / 0.6386 GB, free: 13.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005537/0.3439, allocations: 3.042 MB / 0.6416 GB, free: 9.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.3439, allocations: 16 kB / 0.6416 GB, free: 9.914 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.3439, allocations: 24.75 kB / 0.6416 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008898/0.3448, allocations: 301.4 kB / 0.6419 GB, free: 9.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.3467, allocations: 0.507 MB / 0.6424 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005692/0.3523, allocations: 4.867 MB / 0.6471 GB, free: 3.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.3545, allocations: 108 kB / 0.6472 GB, free: 3.828 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/0.3548, allocations: 104 kB / 0.6473 GB, free: 3.727 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002489/0.3573, allocations: 1.125 MB / 0.6484 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006784/0.3579, allocations: 246.5 kB / 0.6487 GB, free: 2.348 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2322/0.5902, allocations: 2.387 MB / 0.651 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.5902, allocations: 17.02 kB / 0.651 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.062e-05/0.5902, allocations: 5.531 kB / 0.651 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-05/0.5903, allocations: 7.594 kB / 0.651 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/0.603, allocations: 5.683 MB / 0.6566 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.603, allocations: 2.141 kB / 0.6566 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.6042, allocations: 271.4 kB / 0.6568 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008154/0.6051, allocations: 320.8 kB / 0.6571 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.776e-05/0.6051, allocations: 42.61 kB / 0.6572 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005235/0.6104, allocations: 7.019 MB / 0.664 GB, free: 99.15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6104, allocations: 7.75 kB / 0.6641 GB, free: 99.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004669/0.6151, allocations: 3.488 MB / 0.6675 GB, free: 97.53 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.6164, allocations: 0.4957 MB / 0.6679 GB, free: 97.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/0.6167, allocations: 35.88 kB / 0.668 GB, free: 97.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.6177, allocations: 68.02 kB / 0.668 GB, free: 97.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.6179, allocations: 115 kB / 0.6682 GB, free: 97.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.582e-05/0.618, allocations: 47.45 kB / 0.6682 GB, free: 97.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001819/0.6198, allocations: 1.468 MB / 0.6696 GB, free: 96.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6198, allocations: 0 / 0.6696 GB, free: 96.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002134/0.622, allocations: 0.6643 MB / 0.6703 GB, free: 96.58 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004646/0.6266, allocations: 4.092 MB / 0.6743 GB, free: 94.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003162/0.6298, allocations: 2.362 MB / 0.6766 GB, free: 93.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.6298, allocations: 0 / 0.6766 GB, free: 93.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.6314, allocations: 1.339 MB / 0.6779 GB, free: 92.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.6337, allocations: 0.5763 MB / 0.6785 GB, free: 92.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0287/0.6624, allocations: 23.67 MB / 0.7016 GB, free: 68.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/0.664, allocations: 2.522 MB / 0.704 GB, free: 66.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001536/0.6656, allocations: 0.5196 MB / 0.7045 GB, free: 65.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.6669, allocations: 1.358 MB / 0.7059 GB, free: 64.16 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6669, allocations: 0 / 0.7059 GB, free: 64.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09834/0.7653, allocations: 58.37 MB / 0.7629 GB, free: 6.316 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.56, allocations: 15.67 kB / 0.7629 GB, free: 6.301 MB / 462.1 MB " [Timeout remaining time 644] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.238544419873506] Failed to read output from testmodel.py, exit status != 0: 15.894238985143602 15.705230232 15.492287025 Calling exit ...