Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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 3.2.3+maint.om/package.mo): time 0.001351/0.001351, allocations: 178.9 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.162/1.162, allocations: 205.2 MB / 214.1 MB, free: 1.84 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008663/0.0008662, allocations: 87.39 kB / 262.1 MB, free: 1.789 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1396/0.1405, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0666/0.2071, allocations: 47.58 MB / 362.6 MB, free: 7.312 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2596/0.4667, allocations: 129.9 MB / 492.6 MB, free: 14.42 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.467, allocations: 82.7 kB / 492.7 MB, free: 14.38 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.4412/0.9082, allocations: 127.7 MB / 0.6058 GB, free: 80.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.9083, allocations: 12 kB / 0.6058 GB, free: 80.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005402/0.9137, allocations: 1.008 MB / 0.6068 GB, free: 79.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009928/0.9236, allocations: 4.61 MB / 0.6113 GB, free: 74.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.9238, allocations: 176 kB / 0.6115 GB, free: 74.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.9248, allocations: 319.9 kB / 0.6118 GB, free: 73.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009518/0.9344, allocations: 5.192 MB / 0.6168 GB, free: 68.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01044/0.9448, allocations: 6.122 MB / 0.6228 GB, free: 62.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/0.945, allocations: 15.84 kB / 0.6228 GB, free: 62.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004828/0.9455, allocations: 7.984 kB / 0.6228 GB, free: 62.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/0.9457, allocations: 250.6 kB / 0.6231 GB, free: 62.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03103/0.9767, allocations: 21.62 MB / 0.6442 GB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002443/0.9792, allocations: 1.812 MB / 0.646 GB, free: 38.33 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/0.9819, allocations: 2.173 MB / 0.6481 GB, free: 36.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.992, allocations: 6.603 MB / 0.6545 GB, free: 29.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.9921, allocations: 64.61 kB / 0.6546 GB, free: 29.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=267): time 6.042e-06/0.9921, allocations: 4 kB / 0.6546 GB, free: 29.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=294): time 0.01595/1.008, allocations: 9.182 MB / 0.6636 GB, free: 20.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/1.008, allocations: 85.66 kB / 0.6637 GB, free: 20.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/1.011, allocations: 2.229 MB / 0.6658 GB, free: 17.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/1.011, allocations: 25.7 kB / 0.6659 GB, free: 17.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000666/1.012, allocations: 1.97 MB / 0.6678 GB, free: 15.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005144/1.012, allocations: 0.9584 MB / 0.6687 GB, free: 14.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/1.013, allocations: 0 / 0.6687 GB, free: 14.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/1.013, allocations: 449.4 kB / 0.6691 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/1.015, allocations: 1.456 MB / 0.6706 GB, free: 12.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/1.017, allocations: 2.427 MB / 0.6729 GB, free: 10.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/1.02, allocations: 1.947 MB / 0.6748 GB, free: 8.059 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/1.02, allocations: 8 kB / 0.6748 GB, free: 8.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=455) (initialization): time 0.007459/1.027, allocations: 4.88 MB / 0.6796 GB, free: 3.105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.027, allocations: 4 kB / 0.6796 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/1.027, allocations: 35.94 kB / 0.6797 GB, free: 3.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/1.029, allocations: 0.725 MB / 0.6804 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003186/1.032, allocations: 0.8074 MB / 0.6811 GB, free: 1.516 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1267/1.159, allocations: 9.011 MB / 0.6899 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003165/1.162, allocations: 110.6 kB / 0.6901 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003449/1.162, allocations: 156.7 kB / 0.6902 GB, free: 101.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 412 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005381/1.163, allocations: 201.3 kB / 0.6904 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004987/1.163, allocations: 333.9 kB / 0.6907 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007468/1.171, allocations: 4.469 MB / 0.6951 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/1.171, allocations: 31.94 kB / 0.6951 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/1.171, allocations: 9.938 kB / 0.6951 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/1.171, allocations: 14.16 kB / 0.6951 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/1.185, allocations: 9.328 MB / 0.7042 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/1.185, allocations: 6.5 kB / 0.7042 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002245/1.188, allocations: 467.3 kB / 0.7047 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/1.19, allocations: 0.9455 MB / 0.7056 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/1.19, allocations: 38.77 kB / 0.7057 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/1.203, allocations: 14.85 MB / 0.7202 GB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/1.203, allocations: 10.84 kB / 0.7202 GB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009205/1.212, allocations: 6.895 MB / 0.7269 GB, free: 90.3 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01145/1.224, allocations: 9.448 MB / 0.7361 GB, free: 87.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/1.225, allocations: 0.7282 MB / 0.7368 GB, free: 86.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/1.226, allocations: 19.59 kB / 0.7369 GB, free: 86.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002099/1.228, allocations: 107.8 kB / 0.737 GB, free: 86.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/1.229, allocations: 162.6 kB / 0.7371 GB, free: 86.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.229, allocations: 81.53 kB / 0.7372 GB, free: 86.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002726/1.232, allocations: 1.635 MB / 0.7388 GB, free: 86.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004216/1.236, allocations: 1.003 MB / 0.7398 GB, free: 86.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 228 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007354/1.237, allocations: 491.3 kB / 0.7402 GB, free: 86.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005774/1.242, allocations: 4.324 MB / 0.7445 GB, free: 84.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.242, allocations: 6.25 kB / 0.7445 GB, free: 84.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/1.246, allocations: 2.74 MB / 0.7471 GB, free: 82.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/1.249, allocations: 0.6556 MB / 0.7478 GB, free: 82.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/1.265, allocations: 8.469 MB / 0.756 GB, free: 79.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004292/1.27, allocations: 3.804 MB / 0.7598 GB, free: 78.05 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/1.27, allocations: 2.062 kB / 0.7598 GB, free: 78.05 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)