Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",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.001485/0.001485, allocations: 180 kB / 8.478 MB, free: 1.875 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.147/1.147, allocations: 205.2 MB / 214.1 MB, free: 5.449 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.0009121/0.0009121, allocations: 82.28 kB / 262.1 MB, free: 5.52 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1549/0.1559, allocations: 52.98 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06497/0.2208, allocations: 47.58 MB / 362.7 MB, free: 9.898 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2384/0.4593, allocations: 117.3 MB / 480 MB, free: 7.484 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.4595, allocations: 84.89 kB / 480.1 MB, free: 7.441 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.4734/0.933, allocations: 136.3 MB / 0.6019 GB, free: 35.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.933, allocations: 9.5 kB / 0.602 GB, free: 35.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004989/0.938, allocations: 0.9797 MB / 0.6029 GB, free: 35.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009253/0.9473, allocations: 4.506 MB / 0.6073 GB, free: 34.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.9475, allocations: 161.4 kB / 0.6075 GB, free: 34.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.9485, allocations: 288.2 kB / 0.6077 GB, free: 34.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008206/0.9567, allocations: 5.218 MB / 0.6128 GB, free: 34.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008403/0.9652, allocations: 5.994 MB / 0.6187 GB, free: 34.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.9653, allocations: 3.906 kB / 0.6187 GB, free: 34.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004281/0.9657, allocations: 3.844 kB / 0.6187 GB, free: 34.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.9659, allocations: 246.4 kB / 0.6189 GB, free: 34.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.9919, allocations: 20.19 MB / 0.6386 GB, free: 30.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.9943, allocations: 1.998 MB / 0.6406 GB, free: 30.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003256/0.9976, allocations: 2.603 MB / 0.6431 GB, free: 30.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007928/1.006, allocations: 5.478 MB / 0.6485 GB, free: 27.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/1.006, allocations: 67.09 kB / 0.6486 GB, free: 27.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 3.977e-06/1.006, allocations: 0 / 0.6486 GB, free: 27.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.01216/1.018, allocations: 7.824 MB / 0.6562 GB, free: 24.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/1.018, allocations: 80 kB / 0.6563 GB, free: 24.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/1.02, allocations: 2.135 MB / 0.6584 GB, free: 23.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/1.021, allocations: 32.45 kB / 0.6584 GB, free: 23.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005499/1.021, allocations: 1.695 MB / 0.66 GB, free: 21.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/1.022, allocations: 0.8372 MB / 0.6609 GB, free: 21.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/1.022, allocations: 0 / 0.6609 GB, free: 21.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/1.022, allocations: 417.5 kB / 0.6613 GB, free: 20.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/1.023, allocations: 1.36 MB / 0.6626 GB, free: 20.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/1.025, allocations: 1.934 MB / 0.6645 GB, free: 19.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/1.028, allocations: 1.726 MB / 0.6662 GB, free: 18.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/1.028, allocations: 6.219 kB / 0.6662 GB, free: 18.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.005984/1.034, allocations: 4.271 MB / 0.6703 GB, free: 16.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/1.034, allocations: 3.781 kB / 0.6703 GB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/1.034, allocations: 22.72 kB / 0.6704 GB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/1.035, allocations: 0.6389 MB / 0.671 GB, free: 16.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/1.038, allocations: 0.6154 MB / 0.6716 GB, free: 16.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008073/1.046, allocations: 9.406 MB / 0.6808 GB, free: 9.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/1.048, allocations: 61.75 kB / 0.6808 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/1.048, allocations: 109.8 kB / 0.6809 GB, free: 9.551 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 301 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004499/1.049, allocations: 157.5 kB / 0.6811 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/1.049, allocations: 294.7 kB / 0.6814 GB, free: 9.285 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006292/1.056, allocations: 4.051 MB / 0.6853 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/1.056, allocations: 26.5 kB / 0.6854 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/1.056, allocations: 11.72 kB / 0.6854 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.181e-05/1.056, allocations: 12.75 kB / 0.6854 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/1.067, allocations: 8.617 MB / 0.6938 GB, free: 3.844 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.067, allocations: 3.875 kB / 0.6938 GB, free: 3.844 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/1.069, allocations: 394.7 kB / 0.6942 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/1.071, allocations: 0.8076 MB / 0.695 GB, free: 3.562 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/1.071, allocations: 31.27 kB / 0.695 GB, free: 3.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/1.084, allocations: 13.53 MB / 0.7082 GB, free: 9.141 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.084, allocations: 7.562 kB / 0.7082 GB, free: 9.141 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008826/1.093, allocations: 6.206 MB / 0.7143 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01216/1.105, allocations: 8.707 MB / 0.7228 GB, free: 2.047 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.107, allocations: 0.6857 MB / 0.7234 GB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005197/1.107, allocations: 20.84 kB / 0.7235 GB, free: 1.609 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/1.109, allocations: 87.16 kB / 0.7235 GB, free: 1.602 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003593/1.109, allocations: 159.6 kB / 0.7237 GB, free: 1.578 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/1.11, allocations: 72.88 kB / 0.7238 GB, free: 1.559 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002507/1.112, allocations: 1.6 MB / 0.7253 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003686/1.116, allocations: 0.8987 MB / 0.7262 GB, free: 0.8477 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007142/1.117, allocations: 419.4 kB / 0.7266 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01087/1.127, allocations: 4.375 MB / 0.7309 GB, free: 14.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.127, allocations: 4 kB / 0.7309 GB, free: 14.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/1.131, allocations: 2.53 MB / 0.7333 GB, free: 12.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/1.134, allocations: 0.5817 MB / 0.7339 GB, free: 12.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/1.149, allocations: 7.997 MB / 0.7417 GB, free: 4.934 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004097/1.153, allocations: 3.729 MB / 0.7454 GB, free: 2.039 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/1.153, allocations: 0 / 0.7454 GB, free: 2.039 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat