Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",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.001605/0.001605, allocations: 197.5 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008684/0.0008684, allocations: 89.11 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1631/0.1631, allocations: 45.14 MB / 383.3 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1834/0.3466, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.4303, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2368/0.6671, allocations: 87.17 MB / 0.589 GB, free: 15.81 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.6674, allocations: 67.09 kB / 0.589 GB, free: 15.78 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.004778/0.6721, allocations: 1.863 MB / 0.5909 GB, free: 14.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.6722, allocations: 8 kB / 0.5909 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.6722, allocations: 11.89 kB / 0.5909 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.6724, allocations: 183.6 kB / 0.5911 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.6724, allocations: 3.984 kB / 0.5911 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.6724, allocations: 8 kB / 0.5911 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001328/0.6726, allocations: 48.19 kB / 0.5911 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.6727, allocations: 86.59 kB / 0.5912 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.6727, allocations: 0 / 0.5912 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.6727, allocations: 7.938 kB / 0.5912 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.6728, allocations: 4 kB / 0.5912 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.6734, allocations: 450.4 kB / 0.5916 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.6735, allocations: 53.02 kB / 0.5917 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.049e-05/0.6736, allocations: 46.03 kB / 0.5917 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.6737, allocations: 4 kB / 0.5917 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.88e-05/0.6737, allocations: 30.56 kB / 0.5918 GB, free: 13.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.6737, allocations: 2.516 kB / 0.5918 GB, free: 13.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002623/0.674, allocations: 79.89 kB / 0.5918 GB, free: 13.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.674, allocations: 51.41 kB / 0.5919 GB, free: 13.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.6741, allocations: 114.8 kB / 0.592 GB, free: 12.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.6741, allocations: 29.64 kB / 0.592 GB, free: 12.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.6741, allocations: 106.7 kB / 0.5921 GB, free: 12.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.6742, allocations: 22.16 kB / 0.5922 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.6742, allocations: 0 / 0.5922 GB, free: 12.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.6743, allocations: 318 kB / 0.5925 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.209e-05/0.6743, allocations: 15.69 kB / 0.5925 GB, free: 12.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.116e-05/0.6744, allocations: 28.72 kB / 0.5925 GB, free: 12.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.282e-05/0.6744, allocations: 15.75 kB / 0.5925 GB, free: 12.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.6744, allocations: 0 / 0.5925 GB, free: 12.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000174/0.6746, allocations: 97.5 kB / 0.5926 GB, free: 12.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.6746, allocations: 4 kB / 0.5926 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.6746, allocations: 0 / 0.5926 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001143/0.6747, allocations: 24.09 kB / 0.5926 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.6749, allocations: 27.39 kB / 0.5927 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009048/0.6758, allocations: 1.244 MB / 0.5939 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.6759, allocations: 31.25 kB / 0.5939 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.676, allocations: 7.984 kB / 0.5939 GB, free: 10.91 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 (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.427e-05/0.676, allocations: 103.4 kB / 0.594 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.6761, allocations: 15.78 kB / 0.594 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.61e-05/0.6761, allocations: 12.3 kB / 0.594 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.6761, allocations: 0 / 0.594 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.6761, allocations: 4.375 kB / 0.594 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.6761, allocations: 0 / 0.594 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003875/0.6765, allocations: 343.5 kB / 0.5944 GB, free: 10.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.6765, allocations: 3.906 kB / 0.5944 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.6766, allocations: 39 kB / 0.5944 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.344e-05/0.6767, allocations: 19.73 kB / 0.5944 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.6767, allocations: 128 / 0.5944 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007807/0.6775, allocations: 1.243 MB / 0.5956 GB, free: 9.047 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6775, allocations: 0 / 0.5956 GB, free: 9.047 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001934/0.6777, allocations: 199.2 kB / 0.5958 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002841/0.678, allocations: 0.5685 MB / 0.5964 GB, free: 8.258 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.6781, allocations: 81.02 kB / 0.5965 GB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.6781, allocations: 4 kB / 0.5965 GB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.6782, allocations: 19.98 kB / 0.5965 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.509e-05/0.6783, allocations: 11.17 kB / 0.5965 GB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-06/0.6783, allocations: 0 / 0.5965 GB, free: 8.129 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.33e-05/0.6783, allocations: 86.34 kB / 0.5966 GB, free: 8.047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000817/0.6791, allocations: 27.84 kB / 0.5966 GB, free: 8.02 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 (4): * Single equations (assignments): 3 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.642e-05/0.6792, allocations: 95.23 kB / 0.5967 GB, free: 7.918 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.6795, allocations: 138.3 kB / 0.5968 GB, free: 7.789 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.6795, allocations: 0 / 0.5968 GB, free: 7.789 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.6796, allocations: 128.3 kB / 0.597 GB, free: 7.664 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.6797, allocations: 0 / 0.597 GB, free: 7.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002755/0.68, allocations: 134.8 kB / 0.5971 GB, free: 7.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.6803, allocations: 0.7106 MB / 0.5978 GB, free: 6.781 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6803, allocations: 0 / 0.5978 GB, free: 6.781 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat does not exist to compare? outputFormat=mat