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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.001196/0.001196, allocations: 99.16 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.2 MB / 238.9 MB, free: 5.656 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.001056/0.001056, allocations: 183.9 kB / 290.2 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03172/0.03172, allocations: 8.794 MB / 350.1 MB, free: 4.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 11.89 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09402, allocations: 52.56 MB / 465.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01439/0.1085, allocations: 12.73 MB / 478.5 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1205, allocations: 5.041 MB / 483.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002899/0.1234, allocations: 79.69 kB / 483.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003022/0.1265, allocations: 0.9173 MB / 484.5 MB, free: 10.66 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.004866/0.1313, allocations: 1.392 MB / 485.9 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.1335, allocations: 0.6626 MB / 486.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005896/0.1394, allocations: 3.198 MB / 489.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003215/0.1426, allocations: 2.448 MB / 492.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002468/0.1451, allocations: 1.428 MB / 493.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.1481, allocations: 1.723 MB / 495.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005807/0.1487, allocations: 232 kB / 495.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1501, allocations: 411.7 kB / 496 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007594/0.1509, allocations: 0.8526 MB / 496.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.152, allocations: 0.8434 MB / 497.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006142/0.1581, allocations: 6.065 MB / 0.4919 GB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1582, allocations: 4 kB / 0.4919 GB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1582, allocations: 0 / 0.4919 GB, free: 7.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002386/0.1584, allocations: 7.938 kB / 0.4919 GB, free: 7.316 MB / 334.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.01135/0.1698, allocations: 4.245 MB / 0.4961 GB, free: 3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1699, allocations: 8.031 kB / 0.4961 GB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001706/0.1716, allocations: 0.5529 MB / 0.4966 GB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005397/0.177, allocations: 0.9629 MB / 0.4976 GB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006205/0.1832, allocations: 2.607 MB / 0.5001 GB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002431/0.1835, allocations: 287.4 kB / 0.5004 GB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007792/0.1843, allocations: 364 kB / 0.5007 GB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008425/0.1927, allocations: 4.722 MB / 0.5054 GB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.556e-05/0.1928, allocations: 3.906 kB / 0.5054 GB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/0.1931, allocations: 148 kB / 0.5055 GB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.1933, allocations: 163.3 kB / 0.5057 GB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00714/0.2004, allocations: 4.034 MB / 0.5096 GB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0256/0.2261, allocations: 15.88 MB / 0.5251 GB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2107/0.4368, allocations: 6.927 MB / 0.5319 GB, free: 56.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006572/0.4434, allocations: 3.58 MB / 0.5354 GB, free: 56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.4435, allocations: 50.34 kB / 0.5354 GB, free: 55.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 4.409e-06/0.4435, allocations: 1.297 kB / 0.5354 GB, free: 55.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01319/0.4567, allocations: 6.915 MB / 0.5422 GB, free: 54.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.4568, allocations: 74.12 kB / 0.5422 GB, free: 54.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003576/0.4603, allocations: 2.174 MB / 0.5444 GB, free: 54.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.4606, allocations: 54.73 kB / 0.5444 GB, free: 54.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4618, allocations: 1.683 MB / 0.5461 GB, free: 53.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004598/0.4623, allocations: 0.5796 MB / 0.5466 GB, free: 52.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-05/0.4624, allocations: 42.44 kB / 0.5467 GB, free: 52.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4625, allocations: 394.1 kB / 0.547 GB, free: 52.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.4639, allocations: 0.8639 MB / 0.5479 GB, free: 52.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.4655, allocations: 1.482 MB / 0.5493 GB, free: 51.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.4671, allocations: 1.126 MB / 0.5504 GB, free: 50.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.4671, allocations: 5.5 kB / 0.5504 GB, free: 50.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.005151/0.4722, allocations: 3.022 MB / 0.5534 GB, free: 49.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.716e-05/0.4723, allocations: 12.91 kB / 0.5534 GB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.083e-05/0.4724, allocations: 19.91 kB / 0.5534 GB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008145/0.4732, allocations: 296.5 kB / 0.5537 GB, free: 49.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.4749, allocations: 0.4973 MB / 0.5542 GB, free: 49.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003643/0.4785, allocations: 4.539 MB / 0.5586 GB, free: 45.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.4805, allocations: 92.12 kB / 0.5587 GB, free: 45.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.4807, allocations: 95 kB / 0.5588 GB, free: 45.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * 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 (258): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002017/0.4827, allocations: 1.125 MB / 0.5599 GB, free: 44.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/0.4832, allocations: 239.2 kB / 0.5601 GB, free: 44.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.487, allocations: 2.565 MB / 0.5626 GB, free: 43.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.951e-05/0.487, allocations: 16.81 kB / 0.5626 GB, free: 43.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.487, allocations: 4.812 kB / 0.5626 GB, free: 43.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.4871, allocations: 8.672 kB / 0.5627 GB, free: 43.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008867/0.4959, allocations: 6.071 MB / 0.5686 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.496, allocations: 3.906 kB / 0.5686 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.4972, allocations: 303.1 kB / 0.5689 GB, free: 39.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007398/0.4979, allocations: 328.9 kB / 0.5692 GB, free: 39.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.928e-05/0.498, allocations: 35.06 kB / 0.5692 GB, free: 39.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004747/0.5028, allocations: 6.51 MB / 0.5756 GB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.5028, allocations: 1.859 kB / 0.5756 GB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.5075, allocations: 3.886 MB / 0.5794 GB, free: 29.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/0.5088, allocations: 0.5137 MB / 0.5799 GB, free: 28.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002868/0.5091, allocations: 36 kB / 0.5799 GB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.5101, allocations: 71.91 kB / 0.58 GB, free: 28.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/0.5104, allocations: 129.1 kB / 0.5801 GB, free: 28.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.298e-05/0.5105, allocations: 47.98 kB / 0.5802 GB, free: 28.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001846/0.5123, allocations: 1.472 MB / 0.5816 GB, free: 26.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5123, allocations: 0 / 0.5816 GB, free: 26.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002219/0.5145, allocations: 0.6669 MB / 0.5822 GB, free: 26.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004649/0.5192, allocations: 5.07 MB / 0.5872 GB, free: 20.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.5226, allocations: 2.522 MB / 0.5897 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5226, allocations: 0 / 0.5897 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.5243, allocations: 1.484 MB / 0.5911 GB, free: 16.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.5268, allocations: 0.5372 MB / 0.5916 GB, free: 16.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04094/0.5677, allocations: 32.75 MB / 0.6236 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002261/0.57, allocations: 2.589 MB / 0.6261 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001965/0.572, allocations: 0.5196 MB / 0.6266 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/0.5736, allocations: 1.343 MB / 0.628 GB, free: 9.531 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5736, allocations: 0 / 0.628 GB, free: 9.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08733/0.661, allocations: 55.93 MB / 0.6826 GB, free: 2.047 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.6612, allocations: 206.3 kB / 0.6828 GB, free: 1.809 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.977/3.638, allocations: 0 / 0.6828 GB, free: 1.809 MB / 446.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/linux/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) Environment - environmentSimulation: