Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",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 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 181.9 kB / 8.521 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.163/1.163, allocations: 221.4 MB / 230.3 MB, free: 7.641 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009831/0.0009831, allocations: 90.34 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1647/0.1647, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1796/0.3443, allocations: 68.04 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09213/0.4364, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2529/0.6894, allocations: 91.09 MB / 0.5831 GB, free: 5.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/0.6896, allocations: 83.78 kB / 0.5832 GB, free: 5.531 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.01703/0.7067, allocations: 6.074 MB / 0.5891 GB, free: 15.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.7067, allocations: 15.94 kB / 0.5892 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.14e-05/0.7068, allocations: 43.44 kB / 0.5892 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.7071, allocations: 278.4 kB / 0.5895 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.7072, allocations: 12 kB / 0.5895 GB, free: 15.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.7072, allocations: 24 kB / 0.5895 GB, free: 14.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004713/0.7077, allocations: 253.4 kB / 0.5897 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.7082, allocations: 262.2 kB / 0.59 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.7082, allocations: 7.828 kB / 0.59 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.7082, allocations: 0 / 0.59 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.7083, allocations: 8 kB / 0.59 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.7103, allocations: 1.269 MB / 0.5913 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.7107, allocations: 215.4 kB / 0.5915 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.7109, allocations: 144.4 kB / 0.5916 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.711, allocations: 8.281 kB / 0.5916 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.711, allocations: 34.83 kB / 0.5916 GB, free: 12.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 1.583e-06/0.711, allocations: 0 / 0.5916 GB, free: 12.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004555/0.7115, allocations: 227.8 kB / 0.5919 GB, free: 12.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.7115, allocations: 63.33 kB / 0.5919 GB, free: 12.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.7117, allocations: 192.1 kB / 0.5921 GB, free: 12.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.7117, allocations: 25.7 kB / 0.5921 GB, free: 12.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.812e-05/0.7118, allocations: 196 kB / 0.5923 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.814e-05/0.7119, allocations: 118.2 kB / 0.5924 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.624e-05/0.712, allocations: 0 / 0.5924 GB, free: 11.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.7121, allocations: 338.8 kB / 0.5927 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.7122, allocations: 84.8 kB / 0.5928 GB, free: 11.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.7124, allocations: 142.7 kB / 0.593 GB, free: 11.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.7126, allocations: 101.6 kB / 0.5931 GB, free: 11.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.7126, allocations: 0 / 0.5931 GB, free: 11.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004906/0.7131, allocations: 307.1 kB / 0.5933 GB, free: 10.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.7132, allocations: 12.03 kB / 0.5934 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.7132, allocations: 0 / 0.5934 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.7132, allocations: 4 kB / 0.5934 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.7137, allocations: 103.9 kB / 0.5935 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.7137, allocations: 7.984 kB / 0.5935 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.714, allocations: 31.69 kB / 0.5935 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.7141, allocations: 11.98 kB / 0.5935 GB, free: 10.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.457e-05/0.7142, allocations: 120.8 kB / 0.5936 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/0.7142, allocations: 23.72 kB / 0.5937 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.7147, allocations: 268.2 kB / 0.5939 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.7147, allocations: 4 kB / 0.5939 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.7147, allocations: 0 / 0.5939 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.7148, allocations: 4 kB / 0.5939 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.7152, allocations: 345.8 kB / 0.5942 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.7152, allocations: 0 / 0.5942 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.7157, allocations: 87.88 kB / 0.5943 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.7157, allocations: 4 kB / 0.5943 GB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.7157, allocations: 3.984 kB / 0.5943 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.7157, allocations: 0 / 0.5943 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7157, allocations: 4 kB / 0.5943 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005887/0.7163, allocations: 466.5 kB / 0.5948 GB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000931/0.7172, allocations: 0.93 MB / 0.5957 GB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.7174, allocations: 128.6 kB / 0.5958 GB, free: 8.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.708e-05/0.7174, allocations: 4 kB / 0.5958 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.7177, allocations: 16.11 kB / 0.5958 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.7178, allocations: 11.97 kB / 0.5958 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.7178, allocations: 15.98 kB / 0.5959 GB, free: 8.195 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001315/0.7179, allocations: 148.5 kB / 0.596 GB, free: 8.047 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009426/0.7189, allocations: 91.67 kB / 0.5961 GB, free: 7.957 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001607/0.719, allocations: 100.4 kB / 0.5962 GB, free: 7.852 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004286/0.7195, allocations: 223.9 kB / 0.5964 GB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7195, allocations: 0 / 0.5964 GB, free: 7.633 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.7197, allocations: 124 kB / 0.5965 GB, free: 7.512 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.7199, allocations: 20.27 kB / 0.5965 GB, free: 7.492 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.7211, allocations: 0.5284 MB / 0.5971 GB, free: 6.945 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.7216, allocations: 0.8454 MB / 0.5979 GB, free: 6.074 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.7216, allocations: 0 / 0.5979 GB, free: 6.074 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat