Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001698/0.001698, allocations: 210.2 kB / 8.54 MB, free: 2.641 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008481, allocations: 87.16 kB / 286.3 MB, free: 500 kB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2781/0.2781, allocations: 45.13 MB / 383.3 MB, free: 43.02 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1064/0.3845, allocations: 69.38 MB / 452.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.6492, allocations: 63.23 MB / 0.5039 GB, free: 41.27 MB / 382.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09602/0.7452, allocations: 92.16 MB / 0.5939 GB, free: 5.824 MB / 414.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.7455, allocations: 75.95 kB / 0.5939 GB, free: 5.75 MB / 414.1 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.01692/0.7624, allocations: 6.16 MB / 0.5999 GB, free: 15.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.7624, allocations: 8 kB / 0.6 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.7627, allocations: 59.42 kB / 0.6 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.763, allocations: 282.5 kB / 0.6003 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.7631, allocations: 12 kB / 0.6003 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.7631, allocations: 28 kB / 0.6003 GB, free: 15.13 MB / 430.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004735/0.7636, allocations: 245.5 kB / 0.6006 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.7641, allocations: 266 kB / 0.6008 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.7641, allocations: 4 kB / 0.6008 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.7641, allocations: 0 / 0.6008 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.7642, allocations: 12 kB / 0.6008 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.7662, allocations: 1.254 MB / 0.602 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003625/0.7666, allocations: 239.3 kB / 0.6023 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.7668, allocations: 133.4 kB / 0.6024 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.7669, allocations: 4.281 kB / 0.6024 GB, free: 12.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.7669, allocations: 34.84 kB / 0.6024 GB, free: 12.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=34): time 1.744e-06/0.7669, allocations: 0 / 0.6024 GB, free: 12.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=34): time 0.0004558/0.7674, allocations: 235.8 kB / 0.6027 GB, free: 12.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.341e-05/0.7674, allocations: 59.34 kB / 0.6027 GB, free: 12.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.7676, allocations: 196 kB / 0.6029 GB, free: 12.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.7676, allocations: 25.7 kB / 0.6029 GB, free: 12.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.7677, allocations: 192 kB / 0.6031 GB, free: 12.13 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.402e-05/0.7678, allocations: 114.3 kB / 0.6032 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.7678, allocations: 4 kB / 0.6032 GB, free: 12.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.7679, allocations: 334.8 kB / 0.6035 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.7681, allocations: 84.81 kB / 0.6036 GB, free: 11.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.7683, allocations: 142.7 kB / 0.6038 GB, free: 11.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.7685, allocations: 101.6 kB / 0.6039 GB, free: 11.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.7685, allocations: 4 kB / 0.6039 GB, free: 11.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000485/0.769, allocations: 299 kB / 0.6041 GB, free: 11.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.769, allocations: 4.219 kB / 0.6042 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.769, allocations: 8 kB / 0.6042 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.769, allocations: 4 kB / 0.6042 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005353/0.7696, allocations: 111.8 kB / 0.6043 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.7696, allocations: 0 / 0.6043 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.7699, allocations: 43.58 kB / 0.6043 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.7699, allocations: 8 kB / 0.6043 GB, free: 10.86 MB / 430.1 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 8.135e-05/0.77, allocations: 120.8 kB / 0.6044 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.593e-05/0.7701, allocations: 27.7 kB / 0.6045 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004731/0.7705, allocations: 270.6 kB / 0.6047 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.7705, allocations: 4 kB / 0.6047 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.7706, allocations: 0 / 0.6047 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.7706, allocations: 0 / 0.6047 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.771, allocations: 349.7 kB / 0.6051 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.771, allocations: 4 kB / 0.6051 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.7714, allocations: 87.88 kB / 0.6051 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.7714, allocations: 3.938 kB / 0.6051 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.7715, allocations: 0 / 0.6051 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7715, allocations: 4 kB / 0.6052 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.7715, allocations: 7.922 kB / 0.6052 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006273/0.7721, allocations: 458.9 kB / 0.6056 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008519/0.773, allocations: 0.9336 MB / 0.6065 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.7731, allocations: 120.6 kB / 0.6066 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.7732, allocations: 0 / 0.6066 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.7734, allocations: 16.11 kB / 0.6066 GB, free: 8.379 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.7735, allocations: 20.56 kB / 0.6067 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.7735, allocations: 12 kB / 0.6067 GB, free: 8.348 MB / 430.1 MB Notification: Performance of sort global known variables: time 0.0001258/0.7736, allocations: 152.5 kB / 0.6068 GB, free: 8.199 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009197/0.7746, allocations: 87.69 kB / 0.6069 GB, free: 8.113 MB / 430.1 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.000117/0.7747, allocations: 99.17 kB / 0.607 GB, free: 8.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000409/0.7751, allocations: 235.6 kB / 0.6072 GB, free: 7.777 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.7751, allocations: 0 / 0.6072 GB, free: 7.777 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.7753, allocations: 119.9 kB / 0.6073 GB, free: 7.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.7755, allocations: 18.67 kB / 0.6074 GB, free: 7.645 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.7767, allocations: 0.5313 MB / 0.6079 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004443/0.7771, allocations: 0.8454 MB / 0.6087 GB, free: 6.223 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.7771, allocations: 0 / 0.6087 GB, free: 6.223 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat