Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_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.001284/0.001284, allocations: 195.1 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 243.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007597/0.0007594, allocations: 95.94 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.277/0.277, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002424, allocations: 12 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.283, allocations: 62.96 MB / 0.516 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.001973/0.2851, allocations: 2.073 MB / 0.518 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.2862, allocations: 0.9782 MB / 0.5189 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.2863, allocations: 5.781 kB / 0.5189 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002413/0.2866, allocations: 91.81 kB / 0.519 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.2868, allocations: 82.25 kB / 0.5191 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.2874, allocations: 403.5 kB / 0.5195 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.2877, allocations: 207.5 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007106/0.2884, allocations: 497.3 kB / 0.5202 GB, free: 34.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.2886, allocations: 87.94 kB / 0.5202 GB, free: 34.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.2887, allocations: 99.28 kB / 0.5203 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.2887, allocations: 10.88 kB / 0.5204 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.2889, allocations: 135.8 kB / 0.5205 GB, free: 33.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.289, allocations: 33.06 kB / 0.5205 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.2891, allocations: 120 kB / 0.5206 GB, free: 33.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.2894, allocations: 303.9 kB / 0.5209 GB, free: 33.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2894, allocations: 0 / 0.5209 GB, free: 33.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2894, allocations: 0 / 0.5209 GB, free: 33.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.2894, allocations: 0 / 0.5209 GB, free: 33.74 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001002/0.2904, allocations: 0.5886 MB / 0.5215 GB, free: 33.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2904, allocations: 8.094 kB / 0.5215 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.963e-05/0.2905, allocations: 61.83 kB / 0.5216 GB, free: 33.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002711/0.2908, allocations: 54.95 kB / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.786e-05/0.2909, allocations: 195.4 kB / 0.5218 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.2909, allocations: 19.69 kB / 0.5218 GB, free: 32.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.2909, allocations: 23.12 kB / 0.5218 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.2914, allocations: 296.1 kB / 0.5221 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.2915, allocations: 11.88 kB / 0.5221 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.2915, allocations: 10.88 kB / 0.5221 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.2915, allocations: 5.812 kB / 0.5221 GB, free: 32.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005287/0.292, allocations: 254 kB / 0.5224 GB, free: 32.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.2932, allocations: 1.01 MB / 0.5234 GB, free: 32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/0.2936, allocations: 387.2 kB / 0.5237 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.2939, allocations: 141.5 kB / 0.5239 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.294, allocations: 170.6 kB / 0.524 GB, free: 31.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.325e-05/0.2941, allocations: 30.56 kB / 0.5241 GB, free: 31.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 1.442e-06/0.2941, allocations: 0 / 0.5241 GB, free: 31.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001052/0.2951, allocations: 0.532 MB / 0.5246 GB, free: 31.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.2952, allocations: 84.2 kB / 0.5247 GB, free: 30.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.022e-05/0.2952, allocations: 139 kB / 0.5248 GB, free: 30.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2953, allocations: 29.7 kB / 0.5248 GB, free: 30.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.832e-05/0.2953, allocations: 144.3 kB / 0.525 GB, free: 30.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.2954, allocations: 69.48 kB / 0.525 GB, free: 30.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.2954, allocations: 0 / 0.525 GB, free: 30.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.2954, allocations: 325 kB / 0.5253 GB, free: 30.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.2956, allocations: 79.88 kB / 0.5254 GB, free: 30.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.2958, allocations: 136.8 kB / 0.5256 GB, free: 30.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.2962, allocations: 231.6 kB / 0.5258 GB, free: 30.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2962, allocations: 0 / 0.5258 GB, free: 30.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005425/0.2968, allocations: 304.9 kB / 0.5261 GB, free: 29.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2968, allocations: 5.781 kB / 0.5261 GB, free: 29.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2968, allocations: 3.031 kB / 0.5261 GB, free: 29.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000179/0.297, allocations: 52.72 kB / 0.5261 GB, free: 29.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.2972, allocations: 46.89 kB / 0.5262 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.2984, allocations: 2.631 MB / 0.5287 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.2986, allocations: 45.28 kB / 0.5288 GB, free: 27.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.2986, allocations: 5.812 kB / 0.5288 GB, free: 27.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.2987, allocations: 137.4 kB / 0.5289 GB, free: 27.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.2987, allocations: 17.62 kB / 0.5289 GB, free: 27.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000572/0.2993, allocations: 290.8 kB / 0.5292 GB, free: 26.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2993, allocations: 6.812 kB / 0.5292 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2993, allocations: 3.938 kB / 0.5292 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2993, allocations: 2.531 kB / 0.5292 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009378/0.3003, allocations: 0.6627 MB / 0.5299 GB, free: 26.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3003, allocations: 0 / 0.5299 GB, free: 26.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.3005, allocations: 45.89 kB / 0.5299 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.3006, allocations: 44.77 kB / 0.53 GB, free: 26.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3006, allocations: 6.969 kB / 0.53 GB, free: 26.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.3017, allocations: 2.648 MB / 0.5326 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3017, allocations: 0 / 0.5326 GB, free: 23.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000746/0.3024, allocations: 0.5469 MB / 0.5331 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.3025, allocations: 94.48 kB / 0.5332 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3025, allocations: 4 kB / 0.5332 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3027, allocations: 29.03 kB / 0.5332 GB, free: 23.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.3028, allocations: 18.84 kB / 0.5332 GB, free: 23.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.3028, allocations: 9.25 kB / 0.5332 GB, free: 23.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.689e-05/0.3028, allocations: 106.1 kB / 0.5333 GB, free: 23.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3028, allocations: 0 / 0.5333 GB, free: 23.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003932/0.3032, allocations: 69.95 kB / 0.5334 GB, free: 23.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * 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): 13 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009881/0.3042, allocations: 1.109 MB / 0.5345 GB, free: 22.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.3048, allocations: 442.4 kB / 0.5349 GB, free: 22.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3048, allocations: 4 kB / 0.5349 GB, free: 22.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.3051, allocations: 330.4 kB / 0.5352 GB, free: 21.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.3055, allocations: 19.48 kB / 0.5352 GB, free: 21.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.3072, allocations: 1.309 MB / 0.5365 GB, free: 20.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.3074, allocations: 0.7355 MB / 0.5372 GB, free: 20.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.3075, allocations: 56.31 kB / 0.5373 GB, free: 20.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3075, allocations: 4 kB / 0.5373 GB, free: 20.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.279/3.587, allocations: 4.883 MB / 0.5421 GB, free: 19.67 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches