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.005503/0.005503, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.378/1.378, allocations: 222.9 MB / 239.4 MB, free: 4.57 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.001529/0.001529, allocations: 192.4 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03597/0.03597, allocations: 8.791 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001836, allocations: 71.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09698, allocations: 51.57 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2666/0.3636, allocations: 28.71 MB / 0.531 GB, free: 4.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0185/0.3821, allocations: 8.458 MB / 0.5392 GB, free: 4.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007628/0.3898, allocations: 212.3 kB / 0.5394 GB, free: 4.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01907/0.4089, allocations: 8.134 MB / 0.5474 GB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.4196, allocations: 2.803 MB / 0.5501 GB, free: 2.145 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006469/0.4261, allocations: 1.866 MB / 0.5519 GB, free: 1.953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01351/0.4396, allocations: 9.986 MB / 0.5617 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03809/0.4778, allocations: 21.35 MB / 0.5825 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01133/0.4891, allocations: 5.384 MB / 0.5878 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01107/0.5003, allocations: 6.041 MB / 0.5937 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004305/0.5046, allocations: 1.543 MB / 0.5952 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006202/0.5108, allocations: 1.893 MB / 0.597 GB, free: 392 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004489/0.5153, allocations: 2.987 MB / 0.6 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01143/0.5268, allocations: 5.855 MB / 0.6057 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02548/0.5523, allocations: 20.62 MB / 0.6258 GB, free: 3.312 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.5523, allocations: 3.938 kB / 0.6258 GB, free: 3.309 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5523, allocations: 0 / 0.6258 GB, free: 3.309 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005285/0.5529, allocations: 0 / 0.6258 GB, free: 3.309 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.03711/0.59, allocations: 11.85 MB / 0.6374 GB, free: 7.441 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.59, allocations: 8.031 kB / 0.6374 GB, free: 7.434 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004059/0.5941, allocations: 1.347 MB / 0.6387 GB, free: 6.086 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03118/0.6253, allocations: 5.634 MB / 0.6442 GB, free: 0.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01459/0.6399, allocations: 6.31 MB / 0.6504 GB, free: 10.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006166/0.6406, allocations: 0.7062 MB / 0.6511 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003537/0.6441, allocations: 0.9188 MB / 0.652 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0368/0.6809, allocations: 15.09 MB / 0.6667 GB, free: 9.402 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000265/0.6812, allocations: 19.8 kB / 0.6667 GB, free: 9.383 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001717/0.6829, allocations: 396.4 kB / 0.6671 GB, free: 9.004 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004751/0.6834, allocations: 0.5116 MB / 0.6676 GB, free: 8.488 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02723/0.7107, allocations: 13.75 MB / 0.681 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4854/1.196, allocations: 47.29 MB / 0.7272 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/1.214, allocations: 28.78 MB / 0.7553 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004569/1.218, allocations: 2.896 MB / 0.7581 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003288/1.219, allocations: 235.2 kB / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/1.219, allocations: 80.36 kB / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.47e-06/1.219, allocations: 1.969 kB / 0.7584 GB, free: 106 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02685/1.246, allocations: 14.77 MB / 0.7729 GB, free: 104 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/1.246, allocations: 90.02 kB / 0.7729 GB, free: 103.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004532/1.25, allocations: 3.763 MB / 0.7766 GB, free: 103.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003229/1.25, allocations: 91.45 kB / 0.7767 GB, free: 103.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001524/1.252, allocations: 4.073 MB / 0.7807 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/1.253, allocations: 1.304 MB / 0.782 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/1.254, allocations: 1.168 MB / 0.7831 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.816e-05/1.254, allocations: 305.1 kB / 0.7834 GB, free: 100 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.257, allocations: 2.575 MB / 0.7859 GB, free: 99.36 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00388/1.261, allocations: 5.06 MB / 0.7908 GB, free: 95.15 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007357/1.269, allocations: 8.252 MB / 0.7989 GB, free: 89.24 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.583e-05/1.269, allocations: 25.81 kB / 0.7989 GB, free: 89.24 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01138/1.28, allocations: 8.626 MB / 0.8074 GB, free: 85.76 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/1.28, allocations: 37.75 kB / 0.8074 GB, free: 85.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.48e-05/1.28, allocations: 82.44 kB / 0.8075 GB, free: 85.76 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/1.282, allocations: 0.8721 MB / 0.8083 GB, free: 85.38 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003968/1.286, allocations: 1.359 MB / 0.8096 GB, free: 85.05 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009502/1.296, allocations: 9.022 MB / 0.8185 GB, free: 76.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003829/1.3, allocations: 327.3 kB / 0.8188 GB, free: 76.05 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004847/1.3, allocations: 308 kB / 0.8191 GB, free: 75.75 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.004464/1.305, allocations: 3.509 MB / 0.8225 GB, free: 72.22 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009071/1.306, allocations: 414.9 kB / 0.8229 GB, free: 71.81 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008215/1.314, allocations: 5.857 MB / 0.8286 GB, free: 65.92 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/1.314, allocations: 41.03 kB / 0.8286 GB, free: 65.88 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.314, allocations: 8 kB / 0.8287 GB, free: 65.88 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-05/1.314, allocations: 19.92 kB / 0.8287 GB, free: 65.86 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.334, allocations: 14.48 MB / 0.8428 GB, free: 51.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/1.334, allocations: 4 kB / 0.8428 GB, free: 51.35 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002449/1.336, allocations: 0.6631 MB / 0.8435 GB, free: 50.69 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/1.338, allocations: 0.7218 MB / 0.8442 GB, free: 49.96 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/1.338, allocations: 83.98 kB / 0.8442 GB, free: 49.88 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007772/1.346, allocations: 8.059 MB / 0.8521 GB, free: 41.54 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.346, allocations: 7.938 kB / 0.8521 GB, free: 41.54 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/1.356, allocations: 8.493 MB / 0.8604 GB, free: 32.94 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/1.358, allocations: 0.8792 MB / 0.8613 GB, free: 32.04 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005147/1.358, allocations: 73.42 kB / 0.8614 GB, free: 31.96 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/1.36, allocations: 179.9 kB / 0.8615 GB, free: 31.79 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/1.36, allocations: 258.6 kB / 0.8618 GB, free: 31.54 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.361, allocations: 104 kB / 0.8619 GB, free: 31.43 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003034/1.364, allocations: 2.524 MB / 0.8643 GB, free: 28.93 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.81e-07/1.364, allocations: 0 / 0.8643 GB, free: 28.93 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004569/1.368, allocations: 1.561 MB / 0.8659 GB, free: 27.37 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.01008/1.378, allocations: 9.2 MB / 0.8748 GB, free: 18.06 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008286/1.387, allocations: 6.561 MB / 0.8812 GB, free: 11.48 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.387, allocations: 4 kB / 0.8813 GB, free: 11.48 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00352/1.39, allocations: 2.965 MB / 0.8841 GB, free: 8.492 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003904/1.394, allocations: 0.9675 MB / 0.8851 GB, free: 7.559 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08155/1.476, allocations: 52.48 MB / 0.9363 GB, free: 88 kB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2135/1.689, allocations: 5.959 MB / 0.9422 GB, free: 188.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.008126/1.697, allocations: 1.867 MB / 0.944 GB, free: 188 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006223/1.704, allocations: 3.217 MB / 0.9471 GB, free: 188 MB / 0.5607 GB Notification: Performance of SimCode: time 2.344e-06/1.704, allocations: 0 / 0.9471 GB, free: 188 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1608/1.864, allocations: 120.8 MB / 1.065 GB, free: 91.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/20.49, allocations: 12 kB / 1.065 GB, free: 91.89 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)