Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 204.5 kB / 8.543 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.14/1.14, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008775/0.0008776, allocations: 90.86 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09175/0.09265, allocations: 56.91 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.1728, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2218/0.3946, allocations: 110.3 MB / 0.4931 GB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.3948, allocations: 87.08 kB / 0.4932 GB, free: 15.23 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.1364/0.5312, allocations: 54.96 MB / 0.5469 GB, free: 13.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.5313, allocations: 8 kB / 0.5469 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009141/0.5322, allocations: 356.1 kB / 0.5472 GB, free: 12.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.5356, allocations: 1.923 MB / 0.5491 GB, free: 10.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.33e-05/0.5357, allocations: 84 kB / 0.5492 GB, free: 10.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003034/0.536, allocations: 155.9 kB / 0.5493 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003823/0.5398, allocations: 2.392 MB / 0.5517 GB, free: 8.215 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004225/0.544, allocations: 2.848 MB / 0.5545 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-05/0.5441, allocations: 11.89 kB / 0.5545 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.5443, allocations: 4 kB / 0.5545 GB, free: 5.207 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/0.5444, allocations: 120.9 kB / 0.5546 GB, free: 5.086 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.5577, allocations: 10 MB / 0.5644 GB, free: 10.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.559, allocations: 0.8999 MB / 0.5652 GB, free: 9.848 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.56, allocations: 0.7731 MB / 0.566 GB, free: 9.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003088/0.5604, allocations: 227.1 kB / 0.5662 GB, free: 8.812 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.5604, allocations: 47.56 kB / 0.5663 GB, free: 8.758 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.585e-06/0.5604, allocations: 0 / 0.5663 GB, free: 8.758 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.009589/0.57, allocations: 5.198 MB / 0.5713 GB, free: 3.504 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.5701, allocations: 72.66 kB / 0.5714 GB, free: 3.418 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.5719, allocations: 1.316 MB / 0.5727 GB, free: 2.098 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-05/0.572, allocations: 25.7 kB / 0.5727 GB, free: 2.066 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005275/0.5725, allocations: 1.013 MB / 0.5737 GB, free: 1.039 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.5728, allocations: 457.2 kB / 0.5741 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.5729, allocations: 0 / 0.5741 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.573, allocations: 373.9 kB / 0.5745 GB, free: 220 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1054/0.6785, allocations: 0.7813 MB / 0.5753 GB, free: 137.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.6795, allocations: 1.283 MB / 0.5765 GB, free: 137.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.6807, allocations: 1.009 MB / 0.5775 GB, free: 137.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.6807, allocations: 3.906 kB / 0.5775 GB, free: 137.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003/0.6837, allocations: 2.378 MB / 0.5798 GB, free: 137 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.6837, allocations: 9.562 kB / 0.5798 GB, free: 137 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.6837, allocations: 16.5 kB / 0.5798 GB, free: 137 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005347/0.6843, allocations: 239.5 kB / 0.5801 GB, free: 137 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.6858, allocations: 435.7 kB / 0.5805 GB, free: 137 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/0.6876, allocations: 2.842 MB / 0.5833 GB, free: 134.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.6888, allocations: 69.2 kB / 0.5833 GB, free: 134.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.6889, allocations: 77.92 kB / 0.5834 GB, free: 134.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.6891, allocations: 154.4 kB / 0.5835 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.6894, allocations: 177 kB / 0.5837 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002722/0.6921, allocations: 2.08 MB / 0.5857 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.6921, allocations: 14.19 kB / 0.5858 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.6921, allocations: 0 / 0.5858 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.6921, allocations: 6.609 kB / 0.5858 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005782/0.6979, allocations: 4.555 MB / 0.5902 GB, free: 134 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.698, allocations: 6.094 kB / 0.5902 GB, free: 134 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.6991, allocations: 279.8 kB / 0.5905 GB, free: 134 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004588/0.6996, allocations: 200.9 kB / 0.5907 GB, free: 133.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/0.6997, allocations: 9.641 kB / 0.5907 GB, free: 133.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.7013, allocations: 2.823 MB / 0.5934 GB, free: 131.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.7013, allocations: 5.438 kB / 0.5935 GB, free: 131.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003499/0.7048, allocations: 3.445 MB / 0.5968 GB, free: 131.1 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004579/0.7094, allocations: 5.042 MB / 0.6017 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007165/0.7101, allocations: 432.7 kB / 0.6022 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.7104, allocations: 3.562 kB / 0.6022 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009015/0.7113, allocations: 57.83 kB / 0.6022 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.7114, allocations: 77.34 kB / 0.6023 GB, free: 129.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.611e-05/0.7115, allocations: 37.66 kB / 0.6023 GB, free: 129.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00114/0.7127, allocations: 0.9755 MB / 0.6033 GB, free: 129.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001914/0.7146, allocations: 493.4 kB / 0.6037 GB, free: 129.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004577/0.7151, allocations: 380.5 kB / 0.6041 GB, free: 129.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00253/0.7176, allocations: 2.344 MB / 0.6064 GB, free: 129.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7176, allocations: 0 / 0.6064 GB, free: 129.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001359/0.719, allocations: 1.355 MB / 0.6077 GB, free: 128.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.7205, allocations: 369.4 kB / 0.6081 GB, free: 128.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/0.7265, allocations: 3.958 MB / 0.6119 GB, free: 127.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/0.7283, allocations: 2.225 MB / 0.6141 GB, free: 126.7 MB / 442.7 MB Notification: Performance of SimCode: time 4.61e-07/0.7283, allocations: 3.75 kB / 0.6141 GB, free: 126.7 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)