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_MultiPhase.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_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",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.001628/0.001628, allocations: 187.7 kB / 8.481 MB, free: 1.844 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.154/1.154, allocations: 205.2 MB / 214.1 MB, free: 5.504 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.0008617/0.0008616, allocations: 94.19 kB / 262.1 MB, free: 5.559 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1557/0.1566, allocations: 52.98 MB / 315.1 MB, free: 41.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06232/0.219, allocations: 47.57 MB / 362.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2363/0.4553, allocations: 116.4 MB / 479 MB, free: 9.113 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.4555, allocations: 83.33 kB / 479.1 MB, free: 9.074 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.5419/0.9975, allocations: 174 MB / 0.6378 GB, free: 63.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.9975, allocations: 7.875 kB / 0.6378 GB, free: 63.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/1.008, allocations: 1.604 MB / 0.6394 GB, free: 62.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/1.023, allocations: 5.978 MB / 0.6452 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004114/1.024, allocations: 235.8 kB / 0.6454 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00215/1.026, allocations: 434.3 kB / 0.6458 GB, free: 59.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01638/1.042, allocations: 7.234 MB / 0.6529 GB, free: 54.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02187/1.064, allocations: 8.401 MB / 0.6611 GB, free: 47.28 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002994/1.065, allocations: 12.97 kB / 0.6611 GB, free: 47.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001654/1.066, allocations: 8 kB / 0.6611 GB, free: 47.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002532/1.067, allocations: 348.8 kB / 0.6615 GB, free: 46.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05083/1.117, allocations: 29.44 MB / 0.6902 GB, free: 17.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00333/1.121, allocations: 2.322 MB / 0.6925 GB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004579/1.125, allocations: 3.202 MB / 0.6956 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01504/1.14, allocations: 8.764 MB / 0.7042 GB, free: 3.574 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.525e-05/1.141, allocations: 69.33 kB / 0.7042 GB, free: 3.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=352): time 7.454e-06/1.141, allocations: 0 / 0.7042 GB, free: 3.496 MB / 410.7 MB Notification: Performance of matching and sorting (n=360): time 0.02015/1.161, allocations: 9.497 MB / 0.7135 GB, free: 9.887 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/1.161, allocations: 90.23 kB / 0.7136 GB, free: 9.785 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005508/1.166, allocations: 2.545 MB / 0.7161 GB, free: 7.242 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005046/1.167, allocations: 29.7 kB / 0.7161 GB, free: 7.207 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/1.169, allocations: 2.573 MB / 0.7186 GB, free: 4.598 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.17, allocations: 1.178 MB / 0.7198 GB, free: 3.398 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/1.17, allocations: 4 kB / 0.7198 GB, free: 3.395 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003188/1.171, allocations: 471.5 kB / 0.7202 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002975/1.174, allocations: 1.641 MB / 0.7218 GB, free: 1.277 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1381/1.312, allocations: 2.765 MB / 0.7245 GB, free: 109.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003884/1.316, allocations: 2.266 MB / 0.7267 GB, free: 109.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.815e-05/1.316, allocations: 12.47 kB / 0.7267 GB, free: 109.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008685/1.325, allocations: 5.246 MB / 0.7319 GB, free: 109.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/1.325, allocations: 5.969 kB / 0.7319 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.066e-05/1.325, allocations: 39.12 kB / 0.7319 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009397/1.326, allocations: 398.2 kB / 0.7323 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004076/1.33, allocations: 0.9847 MB / 0.7332 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005485/1.335, allocations: 6.964 MB / 0.74 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/1.339, allocations: 104.1 kB / 0.7401 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006837/1.34, allocations: 179.8 kB / 0.7403 GB, free: 104.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 514 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007452/1.34, allocations: 220.2 kB / 0.7405 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007841/1.341, allocations: 378.9 kB / 0.7409 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009029/1.35, allocations: 4.895 MB / 0.7457 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/1.35, allocations: 33.81 kB / 0.7457 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/1.35, allocations: 14.91 kB / 0.7457 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.425e-05/1.35, allocations: 16.08 kB / 0.7457 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01932/1.37, allocations: 11.07 MB / 0.7565 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/1.37, allocations: 5.469 kB / 0.7565 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002639/1.372, allocations: 0.5422 MB / 0.7571 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/1.375, allocations: 0.8727 MB / 0.7579 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/1.375, allocations: 46.25 kB / 0.758 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01372/1.389, allocations: 15.3 MB / 0.7729 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/1.389, allocations: 7.719 kB / 0.7729 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01075/1.399, allocations: 7.621 MB / 0.7804 GB, free: 92.75 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01335/1.413, allocations: 10.45 MB / 0.7906 GB, free: 87.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/1.415, allocations: 0.8332 MB / 0.7914 GB, free: 86.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006809/1.416, allocations: 23.36 kB / 0.7914 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/1.418, allocations: 105.3 kB / 0.7915 GB, free: 86.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/1.418, allocations: 196.5 kB / 0.7917 GB, free: 86.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002361/1.418, allocations: 102 kB / 0.7918 GB, free: 86.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003023/1.422, allocations: 1.879 MB / 0.7936 GB, free: 86.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005418/1.427, allocations: 1.201 MB / 0.7948 GB, free: 86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 282 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008817/1.428, allocations: 0.5246 MB / 0.7953 GB, free: 85.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006324/1.434, allocations: 4.659 MB / 0.7999 GB, free: 83.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.434, allocations: 3.969 kB / 0.7999 GB, free: 83.81 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004382/1.439, allocations: 2.968 MB / 0.8028 GB, free: 82.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/1.442, allocations: 0.7347 MB / 0.8035 GB, free: 82.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01968/1.462, allocations: 10.6 MB / 0.8138 GB, free: 77.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005405/1.468, allocations: 4.774 MB / 0.8185 GB, free: 74 MB / 426.7 MB Notification: Performance of SimCode: time 9.12e-07/1.468, allocations: 0 / 0.8185 GB, free: 74 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat