Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",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.001118/0.001118, allocations: 184.5 kB / 8.525 MB, free: 1.832 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.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0008878/0.0008878, allocations: 94.41 kB / 281.2 MB, free: 5.512 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.1628/0.1628, allocations: 44.16 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.176/0.3388, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.4654, allocations: 61.9 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2638/0.7293, allocations: 89.38 MB / 0.5815 GB, free: 7.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.7295, allocations: 87.77 kB / 0.5816 GB, free: 7.281 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0182/0.7477, allocations: 6.938 MB / 0.5883 GB, free: 296 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.7478, allocations: 19.92 kB / 0.5883 GB, free: 272 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.213e-05/0.7479, allocations: 31.62 kB / 0.5884 GB, free: 240 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.7483, allocations: 290.8 kB / 0.5887 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.7483, allocations: 8 kB / 0.5887 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.37e-05/0.7484, allocations: 12 kB / 0.5887 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003748/0.7487, allocations: 188.9 kB / 0.5889 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003405/0.7491, allocations: 195 kB / 0.589 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.7491, allocations: 4 kB / 0.589 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.7491, allocations: 0 / 0.589 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.7491, allocations: 12 kB / 0.5891 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.7505, allocations: 0.8279 MB / 0.5899 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006804/0.7512, allocations: 286.8 kB / 0.5901 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.7514, allocations: 124.8 kB / 0.5903 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.646e-05/0.7514, allocations: 7.984 kB / 0.5903 GB, free: 14.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.7514, allocations: 38.56 kB / 0.5903 GB, free: 14.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.373e-06/0.7515, allocations: 0 / 0.5903 GB, free: 14.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.001814/0.7533, allocations: 476.9 kB / 0.5908 GB, free: 13.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.7533, allocations: 51.41 kB / 0.5908 GB, free: 13.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.7535, allocations: 183.8 kB / 0.591 GB, free: 13.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.7535, allocations: 25.7 kB / 0.591 GB, free: 13.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.7536, allocations: 140.9 kB / 0.5911 GB, free: 13.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.309e-05/0.7537, allocations: 102.4 kB / 0.5912 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.7537, allocations: 0 / 0.5912 GB, free: 13.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.7538, allocations: 338.8 kB / 0.5916 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.7539, allocations: 75.86 kB / 0.5916 GB, free: 12.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.7541, allocations: 101.8 kB / 0.5917 GB, free: 12.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.7543, allocations: 81.38 kB / 0.5918 GB, free: 12.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.7543, allocations: 0 / 0.5918 GB, free: 12.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001748/0.756, allocations: 0.4906 MB / 0.5923 GB, free: 12.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.7561, allocations: 8 kB / 0.5923 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.7561, allocations: 0 / 0.5923 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001674/0.7577, allocations: 315.2 kB / 0.5926 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.7579, allocations: 31.98 kB / 0.5926 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/0.7644, allocations: 6.064 MB / 0.5985 GB, free: 5.141 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.7646, allocations: 23.73 kB / 0.5986 GB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.7646, allocations: 12.06 kB / 0.5986 GB, free: 5.105 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderRadialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderAxialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cuboid.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: genericFluxTube.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real 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 (15): * Single equations (assignments): 11 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.7648, allocations: 115.6 kB / 0.5987 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.451e-05/0.7649, allocations: 27.62 kB / 0.5987 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.7666, allocations: 0.4958 MB / 0.5992 GB, free: 4.449 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.7666, allocations: 3.938 kB / 0.5992 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.7666, allocations: 0 / 0.5992 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7666, allocations: 4 kB / 0.5992 GB, free: 4.441 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.767, allocations: 313.7 kB / 0.5995 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.767, allocations: 0 / 0.5995 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.7671, allocations: 31.91 kB / 0.5995 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001624/0.7688, allocations: 311.2 kB / 0.5998 GB, free: 3.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.7688, allocations: 0 / 0.5998 GB, free: 3.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006135/0.7749, allocations: 6.01 MB / 0.6057 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.775, allocations: 0 / 0.6057 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001714/0.7767, allocations: 0.5608 MB / 0.6063 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001804/0.7785, allocations: 0.9443 MB / 0.6072 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.725e-05/0.7786, allocations: 108.8 kB / 0.6073 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.7786, allocations: 0 / 0.6073 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.7789, allocations: 11.98 kB / 0.6073 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.7789, allocations: 11.98 kB / 0.6073 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.7789, allocations: 8 kB / 0.6073 GB, free: 11.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001178/0.7791, allocations: 144.5 kB / 0.6074 GB, free: 11.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001098/0.7802, allocations: 99.84 kB / 0.6075 GB, free: 11.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 7 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,2 4,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001442/0.7803, allocations: 111.2 kB / 0.6076 GB, free: 11.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009184/0.7812, allocations: 0.6399 MB / 0.6083 GB, free: 10.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.7813, allocations: 4 kB / 0.6083 GB, free: 10.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00077/0.782, allocations: 0.5692 MB / 0.6088 GB, free: 9.898 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.7823, allocations: 16.34 kB / 0.6088 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008785/0.7831, allocations: 376.6 kB / 0.6092 GB, free: 9.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.7835, allocations: 0.7907 MB / 0.61 GB, free: 8.664 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7835, allocations: 0 / 0.61 GB, free: 8.664 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat does not exist to compare? outputFormat=mat