Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.1 MB / 343.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 78 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.105, allocations: 62.45 MB / 479.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003555/0.1085, allocations: 2.725 MB / 482.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1097, allocations: 0.7792 MB / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.1098, allocations: 11.94 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.11, allocations: 55.56 kB / 483 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002062/0.1103, allocations: 91.36 kB / 483 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.1105, allocations: 87.92 kB / 483.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.1108, allocations: 386.6 kB / 483.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.111, allocations: 137.1 kB / 483.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.1112, allocations: 135.4 kB / 483.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.1114, allocations: 167.2 kB / 483.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.1114, allocations: 20 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.861e-05/0.1115, allocations: 24 kB / 484 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.1115, allocations: 63.7 kB / 484 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1117, allocations: 183 kB / 484.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.112, allocations: 402.5 kB / 484.6 MB, free: 424 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.112, allocations: 4 kB / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.112, allocations: 0 / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.112, allocations: 0 / 484.6 MB, free: 420 kB / 350.1 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.001013/0.1131, allocations: 0.6667 MB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1131, allocations: 12.03 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.905e-05/0.1132, allocations: 74.72 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.416e-05/0.1133, allocations: 44.38 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1135, allocations: 274.6 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.1136, allocations: 29.38 kB / 485.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.1136, allocations: 28.38 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006539/0.1143, allocations: 370 kB / 486.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1143, allocations: 0 / 486.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.1143, allocations: 15.94 kB / 486.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1144, allocations: 8 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006183/0.115, allocations: 271 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1169, allocations: 1.354 MB / 487.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004726/0.1174, allocations: 198.6 kB / 487.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.1177, allocations: 83.45 kB / 488 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.1177, allocations: 8 kB / 488 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.1177, allocations: 30.56 kB / 488.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1177, allocations: 0 / 488.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007523/0.1185, allocations: 253.2 kB / 488.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.1186, allocations: 136.5 kB / 488.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.1189, allocations: 337.6 kB / 488.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.1189, allocations: 25.7 kB / 488.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1191, allocations: 239.6 kB / 489 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.597e-05/0.1191, allocations: 59.19 kB / 489.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.65e-05/0.1192, allocations: 53.98 kB / 489.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1194, allocations: 346.8 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.1196, allocations: 80.5 kB / 489.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.1199, allocations: 168.1 kB / 489.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.1204, allocations: 255.5 kB / 490 MB, free: 10.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1204, allocations: 8 kB / 490 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006241/0.121, allocations: 308.9 kB / 490.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.1211, allocations: 4 kB / 490.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1211, allocations: 4 kB / 490.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1211, allocations: 4.25 kB / 490.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.1215, allocations: 91.86 kB / 490.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.1215, allocations: 11.94 kB / 490.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.1218, allocations: 47.58 kB / 490.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.1218, allocations: 11.98 kB / 490.4 MB, free: 10.16 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.122, allocations: 149.7 kB / 490.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.525e-05/0.1221, allocations: 35.62 kB / 490.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.892e-05/0.1221, allocations: 34.41 kB / 490.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1221, allocations: 4 kB / 490.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1221, allocations: 0 / 490.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1221, allocations: 0 / 490.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006856/0.1228, allocations: 0.5993 MB / 491.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1229, allocations: 0 / 491.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002717/0.1231, allocations: 55.95 kB / 491.3 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1231, allocations: 3.938 kB / 491.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.1232, allocations: 11.92 kB / 491.3 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1232, allocations: 7.938 kB / 491.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1232, allocations: 0 / 491.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.1237, allocations: 402.5 kB / 491.7 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.679e-05/0.1238, allocations: 108.7 kB / 491.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.1238, allocations: 11.94 kB / 491.9 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.124, allocations: 11.98 kB / 491.9 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.1241, allocations: 19.97 kB / 491.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1241, allocations: 4 kB / 491.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.1243, allocations: 235.2 kB / 492.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1243, allocations: 4 kB / 492.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.1247, allocations: 75.75 kB / 492.2 MB, free: 8.266 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007598/0.1255, allocations: 0.9293 MB / 493.1 MB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004901/0.126, allocations: 195.6 kB / 493.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.126, allocations: 0 / 493.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.1262, allocations: 83.81 kB / 493.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.1267, allocations: 25.06 kB / 493.4 MB, free: 6.996 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.1304, allocations: 3.137 MB / 496.6 MB, free: 3.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.1308, allocations: 0.7753 MB / 497.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.1309, allocations: 26.2 kB / 497.4 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.131, allocations: 99.41 kB / 497.5 MB, free: 2.766 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.131, allocations: 0 / 497.5 MB, free: 2.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01506/0.1461, allocations: 4.549 MB / 0.4902 GB, free: 14.3 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/0.1464, allocations: 194.2 kB / 0.4904 GB, free: 14.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.111, allocations: 3.938 kB / 0.4904 GB, free: 14.04 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches