Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 200.4 kB / 16.1 MB, free: 5.574 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007376/0.0007377, allocations: 93.5 kB / 295.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3334/0.3334, allocations: 44.82 MB / 392.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002848, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3222, allocations: 62.96 MB / 0.516 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.002106/0.3244, allocations: 2.066 MB / 0.518 GB, free: 35.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.3254, allocations: 0.7451 MB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.3255, allocations: 5.719 kB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3256, allocations: 50.27 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.3258, allocations: 85.55 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.3261, allocations: 67.56 kB / 0.5189 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.3263, allocations: 311.7 kB / 0.5192 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.3265, allocations: 94.22 kB / 0.5193 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.3267, allocations: 112.2 kB / 0.5194 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.3268, allocations: 133.8 kB / 0.5195 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.3269, allocations: 17.12 kB / 0.5195 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.369e-05/0.3269, allocations: 21.25 kB / 0.5196 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.348e-05/0.327, allocations: 51.23 kB / 0.5196 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.93e-05/0.3271, allocations: 151 kB / 0.5198 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.3273, allocations: 267.2 kB / 0.52 GB, free: 34.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3273, allocations: 0 / 0.52 GB, free: 34.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3273, allocations: 4 kB / 0.52 GB, free: 34.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3273, allocations: 0 / 0.52 GB, free: 34.55 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.0008082/0.3281, allocations: 0.5725 MB / 0.5206 GB, free: 34.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3282, allocations: 11.78 kB / 0.5206 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.233e-05/0.3283, allocations: 56.38 kB / 0.5206 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.3284, allocations: 39.28 kB / 0.5207 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3286, allocations: 255.6 kB / 0.5209 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.3286, allocations: 20.03 kB / 0.5209 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.3287, allocations: 28.31 kB / 0.521 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/0.3291, allocations: 250.3 kB / 0.5212 GB, free: 33.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3291, allocations: 0 / 0.5212 GB, free: 33.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.3292, allocations: 11.03 kB / 0.5212 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3292, allocations: 5.75 kB / 0.5212 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004373/0.3296, allocations: 239.2 kB / 0.5215 GB, free: 33.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.3308, allocations: 0.8766 MB / 0.5223 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.3312, allocations: 315.5 kB / 0.5226 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.3315, allocations: 148.9 kB / 0.5228 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.3315, allocations: 2.906 kB / 0.5228 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.3316, allocations: 38.56 kB / 0.5228 GB, free: 32.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.342e-06/0.3316, allocations: 0 / 0.5228 GB, free: 32.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.003991/0.3356, allocations: 1.275 MB / 0.524 GB, free: 32.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.3356, allocations: 60.66 kB / 0.5241 GB, free: 32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.3358, allocations: 219.4 kB / 0.5243 GB, free: 31.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3358, allocations: 32.7 kB / 0.5243 GB, free: 31.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.3359, allocations: 158.4 kB / 0.5245 GB, free: 31.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.3359, allocations: 104.4 kB / 0.5246 GB, free: 31.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/0.336, allocations: 4 kB / 0.5246 GB, free: 31.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.359e-05/0.336, allocations: 338.7 kB / 0.5249 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.3362, allocations: 103.2 kB / 0.525 GB, free: 31.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.3365, allocations: 128.7 kB / 0.5251 GB, free: 31.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.3369, allocations: 244 kB / 0.5254 GB, free: 31.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3369, allocations: 3.906 kB / 0.5254 GB, free: 31.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001543/0.3384, allocations: 0.5456 MB / 0.5259 GB, free: 30.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3385, allocations: 3 kB / 0.5259 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3385, allocations: 2.844 kB / 0.5259 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/0.34, allocations: 312.6 kB / 0.5262 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.3402, allocations: 29.48 kB / 0.5262 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005324/0.3455, allocations: 6.325 MB / 0.5324 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.3457, allocations: 31.11 kB / 0.5324 GB, free: 24.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.3457, allocations: 16.66 kB / 0.5325 GB, free: 24.93 MB / 378.7 MB 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 () * Number of clocked 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.0001301/0.3459, allocations: 141.7 kB / 0.5326 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.3459, allocations: 23.47 kB / 0.5326 GB, free: 24.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.3475, allocations: 0.5555 MB / 0.5332 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.3475, allocations: 6.719 kB / 0.5332 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.3475, allocations: 3.938 kB / 0.5332 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3475, allocations: 3.328 kB / 0.5332 GB, free: 24.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.3479, allocations: 356.1 kB / 0.5335 GB, free: 24.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3479, allocations: 6.812 kB / 0.5335 GB, free: 24.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.348, allocations: 25.06 kB / 0.5335 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001351/0.3494, allocations: 308.6 kB / 0.5338 GB, free: 24.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.3494, allocations: 6.938 kB / 0.5338 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005201/0.3546, allocations: 6.364 MB / 0.5401 GB, free: 18.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3546, allocations: 3.984 kB / 0.5401 GB, free: 18.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.3563, allocations: 0.6301 MB / 0.5407 GB, free: 18.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.3564, allocations: 109.2 kB / 0.5408 GB, free: 17.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.3564, allocations: 6.969 kB / 0.5408 GB, free: 17.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.3566, allocations: 15.41 kB / 0.5408 GB, free: 17.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.3568, allocations: 31.19 kB / 0.5408 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3568, allocations: 8.266 kB / 0.5408 GB, free: 17.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.3569, allocations: 163.1 kB / 0.541 GB, free: 17.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3569, allocations: 0 / 0.541 GB, free: 17.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000549/0.3575, allocations: 115.2 kB / 0.5411 GB, free: 17.79 MB / 378.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 () * Number of clocked 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 {2 4,2 4,2 4,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001727/0.3592, allocations: 1.169 MB / 0.5422 GB, free: 16.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008791/0.3601, allocations: 0.7522 MB / 0.543 GB, free: 16.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3601, allocations: 0 / 0.543 GB, free: 16.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009695/0.3611, allocations: 0.727 MB / 0.5437 GB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.3615, allocations: 27.39 kB / 0.5437 GB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.3646, allocations: 1.816 MB / 0.5455 GB, free: 14.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.3648, allocations: 0.7693 MB / 0.5462 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.841e-05/0.3649, allocations: 79.31 kB / 0.5463 GB, free: 14.02 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3649, allocations: 0 / 0.5463 GB, free: 14.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.709/4.074, allocations: 8.834 MB / 0.5549 GB, free: 11.88 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches