Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 199.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007652/0.0007652, allocations: 102.7 kB / 295.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2914/0.2914, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002701, allocations: 11.98 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2833, allocations: 62.96 MB / 0.516 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002766/0.2862, allocations: 2.246 MB / 0.5182 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009068/0.2871, allocations: 0.7265 MB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2872, allocations: 14.5 kB / 0.5189 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.2874, allocations: 48.06 kB / 0.5189 GB, free: 35.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.2876, allocations: 78.84 kB / 0.519 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.2878, allocations: 87.39 kB / 0.5191 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.288, allocations: 375.7 kB / 0.5194 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.2882, allocations: 130 kB / 0.5196 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.2884, allocations: 125.9 kB / 0.5197 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.2886, allocations: 146.2 kB / 0.5198 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.2886, allocations: 19.94 kB / 0.5198 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.025e-05/0.2887, allocations: 18.69 kB / 0.5199 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.226e-05/0.2887, allocations: 57.78 kB / 0.5199 GB, free: 34.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2888, allocations: 176 kB / 0.5201 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.289, allocations: 308.3 kB / 0.5204 GB, free: 34.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.2891, allocations: 4 kB / 0.5204 GB, free: 34.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2891, allocations: 0 / 0.5204 GB, free: 34.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.2891, allocations: 6.812 kB / 0.5204 GB, free: 34.37 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0008255/0.2899, allocations: 0.6111 MB / 0.521 GB, free: 33.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.29, allocations: 13.2 kB / 0.521 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.429e-05/0.2901, allocations: 73.31 kB / 0.5211 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.2901, allocations: 38.06 kB / 0.5211 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.2903, allocations: 271.8 kB / 0.5214 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.2904, allocations: 27.25 kB / 0.5214 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.2904, allocations: 34.38 kB / 0.5214 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.291, allocations: 368.7 kB / 0.5218 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.291, allocations: 0 / 0.5218 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.291, allocations: 14.97 kB / 0.5218 GB, free: 33.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2911, allocations: 12.78 kB / 0.5218 GB, free: 33.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005595/0.2916, allocations: 281.9 kB / 0.5221 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2932, allocations: 1.368 MB / 0.5234 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/0.2936, allocations: 209.2 kB / 0.5236 GB, free: 32.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.2938, allocations: 92.34 kB / 0.5237 GB, free: 32.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2939, allocations: 10.19 kB / 0.5237 GB, free: 32.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.2939, allocations: 37.44 kB / 0.5237 GB, free: 32.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.854e-06/0.2939, allocations: 0 / 0.5237 GB, free: 32.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007548/0.2947, allocations: 278.3 kB / 0.524 GB, free: 31.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.2947, allocations: 139.3 kB / 0.5241 GB, free: 31.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.295, allocations: 320.6 kB / 0.5244 GB, free: 31.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.295, allocations: 29.7 kB / 0.5245 GB, free: 31.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.2951, allocations: 247.2 kB / 0.5247 GB, free: 31.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.2952, allocations: 50.27 kB / 0.5248 GB, free: 31.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.2952, allocations: 4 kB / 0.5248 GB, free: 31.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.724e-05/0.2953, allocations: 344.5 kB / 0.5251 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.2955, allocations: 89.73 kB / 0.5252 GB, free: 30.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.2957, allocations: 175.8 kB / 0.5253 GB, free: 30.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.2962, allocations: 273.2 kB / 0.5256 GB, free: 30.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2962, allocations: 0 / 0.5256 GB, free: 30.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005525/0.2967, allocations: 327.5 kB / 0.5259 GB, free: 30.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2968, allocations: 8.344 kB / 0.5259 GB, free: 30.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2968, allocations: 6.688 kB / 0.5259 GB, free: 30.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2968, allocations: 5.375 kB / 0.5259 GB, free: 30.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.2972, allocations: 109.3 kB / 0.526 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.2972, allocations: 3 kB / 0.526 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.2974, allocations: 59.75 kB / 0.5261 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.2975, allocations: 9.438 kB / 0.5261 GB, free: 30.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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 0.000105/0.2976, allocations: 149.8 kB / 0.5263 GB, free: 30.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.562e-05/0.2977, allocations: 28.75 kB / 0.5263 GB, free: 30.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.2977, allocations: 36.78 kB / 0.5263 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.2977, allocations: 6.531 kB / 0.5263 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2978, allocations: 6.875 kB / 0.5263 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2978, allocations: 2.281 kB / 0.5263 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00058/0.2983, allocations: 0.585 MB / 0.5269 GB, free: 29.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2984, allocations: 6.812 kB / 0.5269 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002644/0.2986, allocations: 70.27 kB / 0.527 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.2986, allocations: 2.844 kB / 0.527 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2987, allocations: 10.75 kB / 0.527 GB, free: 29.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2987, allocations: 2.812 kB / 0.527 GB, free: 29.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.2987, allocations: 6.453 kB / 0.527 GB, free: 29.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004433/0.2991, allocations: 417.2 kB / 0.5274 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.2992, allocations: 104 kB / 0.5275 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.2992, allocations: 17.95 kB / 0.5275 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.2995, allocations: 20.81 kB / 0.5275 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.2995, allocations: 12.02 kB / 0.5275 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.2995, allocations: 8.969 kB / 0.5275 GB, free: 29.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001616/0.2997, allocations: 223.1 kB / 0.5278 GB, free: 29.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2997, allocations: 4 kB / 0.5278 GB, free: 29.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003394/0.3001, allocations: 75.03 kB / 0.5278 GB, free: 29.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.000613/0.3007, allocations: 0.9464 MB / 0.5288 GB, free: 28.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.3011, allocations: 216.3 kB / 0.529 GB, free: 28.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3012, allocations: 0 / 0.529 GB, free: 28.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.3014, allocations: 89.97 kB / 0.5291 GB, free: 28.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004417/0.3018, allocations: 26.95 kB / 0.5291 GB, free: 28.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.304, allocations: 1.754 MB / 0.5308 GB, free: 27.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.3042, allocations: 0.7762 MB / 0.5315 GB, free: 26.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3043, allocations: 105.1 kB / 0.5317 GB, free: 26.36 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3043, allocations: 0 / 0.5317 GB, free: 26.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.723, allocations: 4.15 MB / 0.5357 GB, free: 25.91 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches