Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",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.001119/0.001119, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008803/0.0008802, allocations: 97.81 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1671/0.1671, allocations: 45.15 MB / 383.4 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1913/0.3584, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08301/0.4414, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2592/0.7006, allocations: 89.87 MB / 0.5916 GB, free: 12.92 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.7009, allocations: 72.17 kB / 0.5917 GB, free: 12.88 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.01162/0.7125, allocations: 4.666 MB / 0.5963 GB, free: 8.859 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.7126, allocations: 16 kB / 0.5963 GB, free: 8.844 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.7129, allocations: 43.61 kB / 0.5963 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.713, allocations: 198.7 kB / 0.5965 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-05/0.7131, allocations: 16.66 kB / 0.5965 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.7132, allocations: 18.52 kB / 0.5965 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003253/0.7135, allocations: 187.4 kB / 0.5967 GB, free: 8.426 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.7138, allocations: 220.9 kB / 0.5969 GB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.7139, allocations: 4 kB / 0.5969 GB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.7139, allocations: 0 / 0.5969 GB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.7139, allocations: 8 kB / 0.5969 GB, free: 8.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.7154, allocations: 0.9656 MB / 0.5979 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.368e-05/0.7155, allocations: 37.45 kB / 0.5979 GB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.879e-05/0.7156, allocations: 24.48 kB / 0.5979 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.7156, allocations: 0 / 0.5979 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.7156, allocations: 30.56 kB / 0.598 GB, free: 7.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.7156, allocations: 448 / 0.598 GB, free: 7.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.000164/0.7158, allocations: 60.19 kB / 0.598 GB, free: 7.281 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.7158, allocations: 59.44 kB / 0.5981 GB, free: 7.211 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.716, allocations: 221.1 kB / 0.5983 GB, free: 7.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.716, allocations: 29.64 kB / 0.5983 GB, free: 6.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.7161, allocations: 232.2 kB / 0.5985 GB, free: 6.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.7162, allocations: 15.83 kB / 0.5986 GB, free: 6.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.7162, allocations: 0 / 0.5986 GB, free: 6.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.7163, allocations: 324.9 kB / 0.5989 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.885e-05/0.7164, allocations: 49.94 kB / 0.5989 GB, free: 6.422 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.7165, allocations: 87.27 kB / 0.599 GB, free: 6.359 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.7166, allocations: 66.09 kB / 0.5991 GB, free: 6.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.7166, allocations: 0 / 0.5991 GB, free: 6.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002947/0.7169, allocations: 195 kB / 0.5992 GB, free: 6.164 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.717, allocations: 4 kB / 0.5993 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.717, allocations: 0 / 0.5993 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.717, allocations: 7.906 kB / 0.5993 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.7173, allocations: 62.64 kB / 0.5993 GB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.7173, allocations: 4.016 kB / 0.5993 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.7176, allocations: 35.62 kB / 0.5994 GB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.7176, allocations: 10.5 kB / 0.5994 GB, free: 6.047 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 6.476e-05/0.7177, allocations: 108.9 kB / 0.5995 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.7177, allocations: 15.81 kB / 0.5995 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.7177, allocations: 17.62 kB / 0.5995 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.7178, allocations: 0 / 0.5995 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.7178, allocations: 4 kB / 0.5995 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.7178, allocations: 0 / 0.5995 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.7183, allocations: 476.3 kB / 0.6 GB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.7183, allocations: 0 / 0.6 GB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.499e-05/0.7183, allocations: 4 kB / 0.6 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.7183, allocations: 0 / 0.6 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.7183, allocations: 0 / 0.6 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.7183, allocations: 0 / 0.6 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7183, allocations: 4.062 kB / 0.6 GB, free: 5.426 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001102/0.7185, allocations: 108.9 kB / 0.6001 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001863/0.7187, allocations: 485.9 kB / 0.6005 GB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.7187, allocations: 96.47 kB / 0.6006 GB, free: 4.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.7188, allocations: 0 / 0.6006 GB, free: 4.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.7189, allocations: 11.92 kB / 0.6006 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.073e-05/0.7189, allocations: 0 / 0.6006 GB, free: 4.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.7189, allocations: 0 / 0.6006 GB, free: 4.688 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001345/0.719, allocations: 175.8 kB / 0.6008 GB, free: 4.547 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008489/0.7199, allocations: 75.59 kB / 0.6009 GB, free: 4.473 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.233e-05/0.72, allocations: 91.25 kB / 0.601 GB, free: 4.375 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001775/0.7202, allocations: 102.7 kB / 0.6011 GB, free: 4.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7202, allocations: 0 / 0.6011 GB, free: 4.309 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.147e-05/0.7202, allocations: 15.56 kB / 0.6011 GB, free: 4.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.7204, allocations: 15.3 kB / 0.6011 GB, free: 4.285 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/0.7209, allocations: 229.8 kB / 0.6013 GB, free: 4.047 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.7212, allocations: 0.7811 MB / 0.6021 GB, free: 3.238 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.7212, allocations: 0 / 0.6021 GB, free: 3.238 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat does not exist to compare? outputFormat=mat