Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) 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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 239.3 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 195.6 kB / 289.6 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03583/0.03583, allocations: 8.802 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 85.69 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07447/0.07609, allocations: 51.56 MB / 462.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01605/0.09217, allocations: 15.8 MB / 478.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008615/0.1008, allocations: 5.282 MB / 483.8 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.1027, allocations: 95.69 kB / 483.9 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002794/0.1056, allocations: 1.208 MB / 485.1 MB, free: 7.762 MB / 318.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.004028/0.1096, allocations: 1.552 MB / 486.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002135/0.1117, allocations: 0.9659 MB / 487.7 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005/0.1168, allocations: 4.684 MB / 492.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004213/0.121, allocations: 3.509 MB / 495.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.1238, allocations: 2.106 MB / 498 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/0.1269, allocations: 2.424 MB / 0.4887 GB, free: 8.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009976/0.128, allocations: 0.5703 MB / 0.4892 GB, free: 7.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.1297, allocations: 0.7888 MB / 0.49 GB, free: 7.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.1308, allocations: 1.293 MB / 0.4913 GB, free: 5.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002918/0.1337, allocations: 2.447 MB / 0.4936 GB, free: 3.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006903/0.1406, allocations: 7.446 MB / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.1407, allocations: 4 kB / 0.5009 GB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1407, allocations: 0 / 0.5009 GB, free: 11.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000202/0.1409, allocations: 0 / 0.5009 GB, free: 11.82 MB / 350.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.01284/0.1537, allocations: 4.966 MB / 0.5058 GB, free: 6.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.1538, allocations: 8.031 kB / 0.5058 GB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009393/0.1547, allocations: 0.5609 MB / 0.5063 GB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004952/0.1597, allocations: 0.96 MB / 0.5073 GB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005133/0.1649, allocations: 2.758 MB / 0.51 GB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.1651, allocations: 283.8 kB / 0.5102 GB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006041/0.1657, allocations: 363.9 kB / 0.5106 GB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007649/0.1733, allocations: 4.78 MB / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.815e-05/0.1734, allocations: 7.906 kB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/0.1738, allocations: 148 kB / 0.5154 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.1739, allocations: 155.3 kB / 0.5155 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006596/0.1805, allocations: 4.046 MB / 0.5195 GB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2081/0.3886, allocations: 15.74 MB / 0.5349 GB, free: 56.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005569/0.3943, allocations: 6.922 MB / 0.5416 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.3967, allocations: 1.513 MB / 0.5431 GB, free: 51.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006321/0.403, allocations: 4.171 MB / 0.5472 GB, free: 50.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.403, allocations: 52.41 kB / 0.5472 GB, free: 50.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.015e-06/0.4031, allocations: 0 / 0.5472 GB, free: 50.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01091/0.414, allocations: 6.371 MB / 0.5534 GB, free: 47.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.414, allocations: 68.78 kB / 0.5535 GB, free: 47.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.4168, allocations: 2.187 MB / 0.5556 GB, free: 47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.417, allocations: 53.64 kB / 0.5557 GB, free: 46.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007957/0.4178, allocations: 1.734 MB / 0.5574 GB, free: 45.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.4181, allocations: 0.5416 MB / 0.5579 GB, free: 45.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004725/0.4186, allocations: 405.8 kB / 0.5583 GB, free: 44.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.4186, allocations: 305.1 kB / 0.5586 GB, free: 44.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.4197, allocations: 0.8241 MB / 0.5594 GB, free: 44.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.4211, allocations: 1.591 MB / 0.561 GB, free: 42.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/0.4236, allocations: 2.592 MB / 0.5635 GB, free: 40.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.4236, allocations: 6.594 kB / 0.5635 GB, free: 40.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004068/0.4277, allocations: 3.036 MB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.924e-05/0.4277, allocations: 18.91 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.11e-05/0.4278, allocations: 24.69 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007365/0.4285, allocations: 303.2 kB / 0.5668 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.4302, allocations: 0.5005 MB / 0.5673 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0038/0.434, allocations: 4.878 MB / 0.572 GB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.4359, allocations: 105.4 kB / 0.5721 GB, free: 34.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001738/0.4361, allocations: 99.34 kB / 0.5722 GB, free: 34.45 MB / 366.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.001587/0.4377, allocations: 1.139 MB / 0.5733 GB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003782/0.4381, allocations: 235.2 kB / 0.5736 GB, free: 33.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003239/0.4414, allocations: 2.398 MB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4414, allocations: 18.53 kB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.4414, allocations: 6.938 kB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.4414, allocations: 11.97 kB / 0.5759 GB, free: 32.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006877/0.4483, allocations: 5.705 MB / 0.5815 GB, free: 26.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4483, allocations: 4.031 kB / 0.5815 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.4494, allocations: 271.6 kB / 0.5818 GB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006897/0.4501, allocations: 317.6 kB / 0.5821 GB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.969e-05/0.4502, allocations: 39.98 kB / 0.5821 GB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004866/0.4551, allocations: 7.021 MB / 0.589 GB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.4551, allocations: 4.031 kB / 0.589 GB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004297/0.4594, allocations: 3.487 MB / 0.5924 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009497/0.4604, allocations: 494.2 kB / 0.5929 GB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002915/0.4607, allocations: 32 kB / 0.5929 GB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.4617, allocations: 67.95 kB / 0.593 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.4619, allocations: 113.1 kB / 0.5931 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.757e-05/0.462, allocations: 43.98 kB / 0.5931 GB, free: 13.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001666/0.4637, allocations: 1.48 MB / 0.5945 GB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4637, allocations: 0 / 0.5945 GB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001998/0.4657, allocations: 0.6555 MB / 0.5952 GB, free: 11.77 MB / 366.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.004279/0.47, allocations: 4.112 MB / 0.5992 GB, free: 7.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005151/0.4752, allocations: 3.038 MB / 0.6022 GB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4752, allocations: 2 kB / 0.6022 GB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.4768, allocations: 1.408 MB / 0.6035 GB, free: 3.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.4791, allocations: 0.5765 MB / 0.6041 GB, free: 2.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03594/0.5151, allocations: 27.02 MB / 0.6305 GB, free: 4.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002141/0.5173, allocations: 2.523 MB / 0.633 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00189/0.5192, allocations: 0.5118 MB / 0.6335 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/0.5209, allocations: 1.358 MB / 0.6348 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5209, allocations: 0 / 0.6348 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1279/0.6488, allocations: 58.43 MB / 0.6919 GB, free: 6.496 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/11.12, allocations: 3.938 kB / 0.6919 GB, free: 6.492 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)