Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 243.4 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000746/0.0007458, allocations: 104 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2977/0.2977, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002939, allocations: 4 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2843, allocations: 62.95 MB / 0.516 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.001377/0.2857, allocations: 1.412 MB / 0.5173 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001214/0.2858, allocations: 84.06 kB / 0.5174 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.2859, allocations: 2.5 kB / 0.5174 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.544e-05/0.2859, allocations: 13.77 kB / 0.5174 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.286, allocations: 17.66 kB / 0.5174 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.754e-05/0.2861, allocations: 25.3 kB / 0.5175 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.585e-05/0.2862, allocations: 97.42 kB / 0.5176 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.2863, allocations: 50.09 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.97e-05/0.2864, allocations: 37.39 kB / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.597e-05/0.2864, allocations: 41.67 kB / 0.5177 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.2864, allocations: 5.938 kB / 0.5177 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.2865, allocations: 5.875 kB / 0.5177 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.698e-05/0.2865, allocations: 18.28 kB / 0.5177 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.542e-05/0.2865, allocations: 64.73 kB / 0.5178 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.159e-05/0.2866, allocations: 90.09 kB / 0.5179 GB, free: 35.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2866, allocations: 3.375 kB / 0.5179 GB, free: 35.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2866, allocations: 0 / 0.5179 GB, free: 35.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.2867, allocations: 0 / 0.5179 GB, free: 35.82 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0004434/0.2871, allocations: 414.8 kB / 0.5183 GB, free: 35.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2871, allocations: 10.22 kB / 0.5183 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.2872, allocations: 37.03 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.2872, allocations: 12.72 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.103e-05/0.2873, allocations: 178.3 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.2873, allocations: 7.219 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.2873, allocations: 12.66 kB / 0.5185 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.2877, allocations: 133.5 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.2877, allocations: 3.938 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.2877, allocations: 4 kB / 0.5186 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.2877, allocations: 3.75 kB / 0.5186 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003325/0.288, allocations: 138 kB / 0.5188 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.2886, allocations: 471.9 kB / 0.5192 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.2888, allocations: 99.16 kB / 0.5193 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.289, allocations: 71.62 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.2891, allocations: 2.953 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.2891, allocations: 42.5 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.2891, allocations: 3.938 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007119/0.2898, allocations: 300 kB / 0.5197 GB, free: 34.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.011e-05/0.2898, allocations: 51.41 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.186e-05/0.2899, allocations: 121.8 kB / 0.5199 GB, free: 34.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-06/0.2899, allocations: 25.7 kB / 0.5199 GB, free: 34.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.471e-05/0.29, allocations: 112.6 kB / 0.52 GB, free: 34.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.29, allocations: 22.38 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/0.29, allocations: 3.938 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.2901, allocations: 325.2 kB / 0.5204 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2902, allocations: 43.05 kB / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.2904, allocations: 73.23 kB / 0.5205 GB, free: 33.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.2907, allocations: 121.2 kB / 0.5206 GB, free: 33.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2907, allocations: 2.969 kB / 0.5206 GB, free: 33.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003692/0.291, allocations: 170.5 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2911, allocations: 5.812 kB / 0.5208 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2911, allocations: 0 / 0.5208 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.2912, allocations: 27.77 kB / 0.5208 GB, free: 33.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.2913, allocations: 24.41 kB / 0.5208 GB, free: 33.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006306/0.292, allocations: 1.301 MB / 0.5221 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.433e-05/0.2921, allocations: 24.91 kB / 0.5221 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.2921, allocations: 3.516 kB / 0.5221 GB, free: 32.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (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 5.975e-05/0.2921, allocations: 123.4 kB / 0.5222 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.2922, allocations: 2.469 kB / 0.5222 GB, free: 32.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.697e-05/0.2922, allocations: 15.25 kB / 0.5222 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2922, allocations: 0 / 0.5222 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.2922, allocations: 0 / 0.5222 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2922, allocations: 2.875 kB / 0.5222 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005242/0.2928, allocations: 453.7 kB / 0.5227 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2928, allocations: 4.031 kB / 0.5227 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.494e-05/0.2929, allocations: 21.17 kB / 0.5227 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.625e-05/0.2929, allocations: 23.59 kB / 0.5227 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.2929, allocations: 144 / 0.5227 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005122/0.2935, allocations: 1.302 MB / 0.524 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2935, allocations: 3.938 kB / 0.524 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003684/0.2938, allocations: 263 kB / 0.5242 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.091e-05/0.2939, allocations: 91.45 kB / 0.5243 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-06/0.2939, allocations: 0 / 0.5243 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.294, allocations: 18 kB / 0.5243 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.2941, allocations: 12.92 kB / 0.5244 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2941, allocations: 0 / 0.5244 GB, free: 30.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.2941, allocations: 93.39 kB / 0.5244 GB, free: 30.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2941, allocations: 0 / 0.5244 GB, free: 30.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002308/0.2943, allocations: 31.28 kB / 0.5245 GB, free: 30 MB / 378.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 () * Number of clocked 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 0.0005221/0.2949, allocations: 0.7872 MB / 0.5252 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.2953, allocations: 227.4 kB / 0.5255 GB, free: 29.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2953, allocations: 4 kB / 0.5255 GB, free: 29.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.2956, allocations: 170.2 kB / 0.5256 GB, free: 29.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.2958, allocations: 13.02 kB / 0.5256 GB, free: 29.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.2969, allocations: 0.7409 MB / 0.5264 GB, free: 28.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.297, allocations: 0.7003 MB / 0.5271 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.854e-05/0.2971, allocations: 22.31 kB / 0.5271 GB, free: 27.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2971, allocations: 0 / 0.5271 GB, free: 27.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.829/3.126, allocations: 1.934 MB / 0.529 GB, free: 27.62 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches