Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.005975/0.005975, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.363/1.363, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001436/0.001436, allocations: 188.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03561/0.03561, allocations: 8.798 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001448, allocations: 75.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09214, allocations: 51.57 MB / 0.5029 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2036/0.2958, allocations: 28.71 MB / 0.531 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.3101, allocations: 8.451 MB / 0.5392 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004749/0.3149, allocations: 215.2 kB / 0.5394 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01668/0.3316, allocations: 8.133 MB / 0.5474 GB, free: 2.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008787/0.3404, allocations: 2.8 MB / 0.5501 GB, free: 2.141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004992/0.3454, allocations: 1.869 MB / 0.5519 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3573, allocations: 9.987 MB / 0.5617 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02823/0.3856, allocations: 21.34 MB / 0.5825 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008174/0.3938, allocations: 5.365 MB / 0.5878 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009102/0.4029, allocations: 6.047 MB / 0.5937 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003079/0.4061, allocations: 1.543 MB / 0.5952 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004701/0.4108, allocations: 1.884 MB / 0.597 GB, free: 356 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003317/0.4141, allocations: 2.995 MB / 0.5999 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008307/0.4224, allocations: 5.852 MB / 0.6057 GB, free: 7.551 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02116/0.4436, allocations: 20.62 MB / 0.6258 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4437, allocations: 0 / 0.6258 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4437, allocations: 0 / 0.6258 GB, free: 3.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004348/0.4441, allocations: 0 / 0.6258 GB, free: 3.27 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.0321/0.4762, allocations: 11.84 MB / 0.6374 GB, free: 7.402 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4763, allocations: 8.031 kB / 0.6374 GB, free: 7.395 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003096/0.4794, allocations: 1.355 MB / 0.6387 GB, free: 6.039 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03172/0.5111, allocations: 5.631 MB / 0.6442 GB, free: 464 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.5246, allocations: 6.309 MB / 0.6504 GB, free: 10.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006478/0.5253, allocations: 0.7032 MB / 0.651 GB, free: 9.406 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/0.5286, allocations: 0.9243 MB / 0.6519 GB, free: 8.492 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03073/0.5593, allocations: 15.08 MB / 0.6667 GB, free: 9.359 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002213/0.5596, allocations: 15.81 kB / 0.6667 GB, free: 9.344 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001221/0.5608, allocations: 394.5 kB / 0.6671 GB, free: 8.969 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004679/0.5613, allocations: 0.5155 MB / 0.6676 GB, free: 8.449 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02519/0.5865, allocations: 13.75 MB / 0.681 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4562/1.043, allocations: 47.3 MB / 0.7272 GB, free: 128.3 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01929/1.062, allocations: 28.78 MB / 0.7553 GB, free: 102.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004847/1.067, allocations: 2.896 MB / 0.7581 GB, free: 102.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003305/1.067, allocations: 236.4 kB / 0.7583 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/1.067, allocations: 79.11 kB / 0.7584 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 6.141e-06/1.067, allocations: 0.5938 kB / 0.7584 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02848/1.096, allocations: 14.77 MB / 0.7728 GB, free: 100.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/1.096, allocations: 89.95 kB / 0.7729 GB, free: 100.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004511/1.1, allocations: 3.762 MB / 0.7766 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003726/1.101, allocations: 84.92 kB / 0.7767 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001683/1.103, allocations: 4.079 MB / 0.7807 GB, free: 97.96 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009453/1.103, allocations: 1.307 MB / 0.7819 GB, free: 97.14 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001695/1.105, allocations: 1.165 MB / 0.7831 GB, free: 97.05 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.041e-05/1.105, allocations: 308.9 kB / 0.7834 GB, free: 96.75 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/1.108, allocations: 2.569 MB / 0.7859 GB, free: 96.23 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/1.113, allocations: 5.063 MB / 0.7908 GB, free: 92.02 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007963/1.121, allocations: 8.257 MB / 0.7989 GB, free: 86.11 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.285e-05/1.121, allocations: 23.84 kB / 0.7989 GB, free: 86.11 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01288/1.134, allocations: 8.614 MB / 0.8073 GB, free: 82.65 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.418e-05/1.134, allocations: 42.88 kB / 0.8074 GB, free: 82.65 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/1.134, allocations: 82.47 kB / 0.8074 GB, free: 82.65 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002234/1.136, allocations: 0.8713 MB / 0.8083 GB, free: 82.38 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004295/1.14, allocations: 1.361 MB / 0.8096 GB, free: 82.04 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009676/1.15, allocations: 9.029 MB / 0.8184 GB, free: 75.32 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003817/1.154, allocations: 331.4 kB / 0.8188 GB, free: 75.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006321/1.155, allocations: 301 kB / 0.819 GB, free: 75.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005058/1.16, allocations: 3.512 MB / 0.8225 GB, free: 72.02 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000944/1.161, allocations: 410.9 kB / 0.8229 GB, free: 71.61 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008607/1.169, allocations: 5.852 MB / 0.8286 GB, free: 65.72 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.22e-05/1.169, allocations: 44.75 kB / 0.8286 GB, free: 65.68 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/1.169, allocations: 8 kB / 0.8286 GB, free: 65.67 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.325e-05/1.169, allocations: 24.41 kB / 0.8287 GB, free: 65.65 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02046/1.19, allocations: 14.48 MB / 0.8428 GB, free: 51.15 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/1.19, allocations: 4 kB / 0.8428 GB, free: 51.15 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002531/1.192, allocations: 0.6631 MB / 0.8435 GB, free: 50.48 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/1.194, allocations: 0.7253 MB / 0.8442 GB, free: 49.75 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/1.195, allocations: 83.97 kB / 0.8442 GB, free: 49.67 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008247/1.203, allocations: 8.058 MB / 0.8521 GB, free: 41.34 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.203, allocations: 4 kB / 0.8521 GB, free: 41.34 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01084/1.214, allocations: 8.5 MB / 0.8604 GB, free: 32.73 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/1.216, allocations: 0.8786 MB / 0.8613 GB, free: 31.83 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007149/1.217, allocations: 71.91 kB / 0.8613 GB, free: 31.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001999/1.219, allocations: 183.8 kB / 0.8615 GB, free: 31.58 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005135/1.219, allocations: 247.9 kB / 0.8618 GB, free: 31.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002263/1.219, allocations: 112 kB / 0.8619 GB, free: 31.23 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003318/1.223, allocations: 2.52 MB / 0.8643 GB, free: 28.72 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.2e-07/1.223, allocations: 0 / 0.8643 GB, free: 28.72 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005411/1.228, allocations: 1.552 MB / 0.8658 GB, free: 27.17 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01121/1.239, allocations: 9.212 MB / 0.8748 GB, free: 17.86 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008927/1.248, allocations: 6.566 MB / 0.8812 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/1.248, allocations: 4 kB / 0.8812 GB, free: 11.27 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003769/1.252, allocations: 2.961 MB / 0.8841 GB, free: 8.281 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/1.257, allocations: 0.9604 MB / 0.8851 GB, free: 7.355 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.281/1.537, allocations: 52.49 MB / 0.9363 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009398/1.547, allocations: 5.966 MB / 0.9422 GB, free: 185.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006197/1.553, allocations: 1.858 MB / 0.944 GB, free: 185.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005757/1.559, allocations: 3.218 MB / 0.9471 GB, free: 185.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.973e-06/1.559, allocations: 1.156 kB / 0.9471 GB, free: 185.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1627/1.722, allocations: 120.4 MB / 1.065 GB, free: 90.29 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.32/20.05, allocations: 6.75 kB / 1.065 GB, free: 90.28 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)