Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.Force,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001464/0.001464, allocations: 199.7 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.288/1.288, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007632/0.0007632, allocations: 91.09 kB / 295.5 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.3282/0.3282, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002832, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3209, allocations: 62.96 MB / 0.516 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.002187/0.3232, allocations: 2.556 MB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009473/0.3241, allocations: 0.7368 MB / 0.5192 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.3243, allocations: 9.656 kB / 0.5192 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.3244, allocations: 42.09 kB / 0.5192 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.3246, allocations: 81.11 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.3248, allocations: 87.66 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.3251, allocations: 432.5 kB / 0.5198 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.3253, allocations: 134 kB / 0.5199 GB, free: 34.4 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.3255, allocations: 158.1 kB / 0.5201 GB, free: 34.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001558/0.3257, allocations: 166.2 kB / 0.5202 GB, free: 34.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/0.3257, allocations: 27.69 kB / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.036e-05/0.3258, allocations: 27.08 kB / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.3259, allocations: 61.75 kB / 0.5204 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.326, allocations: 198.8 kB / 0.5205 GB, free: 34.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.3262, allocations: 336.8 kB / 0.5209 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3263, allocations: 2.719 kB / 0.5209 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.3263, allocations: 0 / 0.5209 GB, free: 34.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.3263, allocations: 0 / 0.5209 GB, free: 34.02 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001017/0.3273, allocations: 0.6431 MB / 0.5215 GB, free: 33.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3273, allocations: 7.312 kB / 0.5215 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.03e-05/0.3274, allocations: 75.39 kB / 0.5216 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.3276, allocations: 61.58 kB / 0.5216 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.3279, allocations: 285.3 kB / 0.5219 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.3279, allocations: 32.5 kB / 0.5219 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.328, allocations: 41.41 kB / 0.522 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.3286, allocations: 355.4 kB / 0.5223 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.3286, allocations: 0 / 0.5223 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.3286, allocations: 14.81 kB / 0.5223 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3286, allocations: 8.844 kB / 0.5223 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005475/0.3292, allocations: 316.6 kB / 0.5226 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.3309, allocations: 1.346 MB / 0.524 GB, free: 31.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.3314, allocations: 285.9 kB / 0.5242 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.3317, allocations: 164 kB / 0.5244 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.3317, allocations: 6.094 kB / 0.5244 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.3317, allocations: 34.84 kB / 0.5244 GB, free: 31.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 1.653e-06/0.3317, allocations: 0 / 0.5244 GB, free: 31.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007338/0.3325, allocations: 391.5 kB / 0.5248 GB, free: 31.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.218e-05/0.3325, allocations: 58.16 kB / 0.5249 GB, free: 31.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.3327, allocations: 264 kB / 0.5251 GB, free: 31.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3327, allocations: 32.58 kB / 0.5251 GB, free: 31.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.943e-05/0.3328, allocations: 204.9 kB / 0.5253 GB, free: 31.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.688e-05/0.3329, allocations: 119.9 kB / 0.5254 GB, free: 31.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.3329, allocations: 6.719 kB / 0.5254 GB, free: 31.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.333, allocations: 342.7 kB / 0.5258 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3332, allocations: 109.9 kB / 0.5259 GB, free: 30.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3334, allocations: 179.6 kB / 0.5261 GB, free: 30.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.3339, allocations: 301 kB / 0.5263 GB, free: 30.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3339, allocations: 3.938 kB / 0.5263 GB, free: 30.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000558/0.3345, allocations: 367.4 kB / 0.5267 GB, free: 30.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.3345, allocations: 9.781 kB / 0.5267 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3345, allocations: 2.906 kB / 0.5267 GB, free: 30.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3345, allocations: 6.656 kB / 0.5267 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004382/0.335, allocations: 104.2 kB / 0.5268 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.335, allocations: 5.875 kB / 0.5268 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.3352, allocations: 43.69 kB / 0.5269 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.3353, allocations: 14.94 kB / 0.5269 GB, free: 30.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * 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.0001115/0.3354, allocations: 159.4 kB / 0.527 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-05/0.3354, allocations: 29.91 kB / 0.5271 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005647/0.336, allocations: 334.7 kB / 0.5274 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.336, allocations: 9.094 kB / 0.5274 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.336, allocations: 0 / 0.5274 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.336, allocations: 0 / 0.5274 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003542/0.3364, allocations: 400.4 kB / 0.5278 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3364, allocations: 0 / 0.5278 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.3368, allocations: 88.06 kB / 0.5278 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3368, allocations: 2.656 kB / 0.5278 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.3368, allocations: 11.22 kB / 0.5279 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3368, allocations: 0 / 0.5279 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3368, allocations: 4 kB / 0.5279 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.3376, allocations: 0.5317 MB / 0.5284 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.884e-05/0.3377, allocations: 131.9 kB / 0.5285 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.3377, allocations: 6.688 kB / 0.5285 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.3379, allocations: 14.91 kB / 0.5285 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.703e-05/0.338, allocations: 28.81 kB / 0.5286 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.338, allocations: 10.28 kB / 0.5286 GB, free: 29.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000134/0.3382, allocations: 189.7 kB / 0.5287 GB, free: 29.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3382, allocations: 0 / 0.5287 GB, free: 29.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003129/0.3385, allocations: 99.06 kB / 0.5288 GB, free: 29.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * 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.0009549/0.3394, allocations: 1.073 MB / 0.5299 GB, free: 28.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.34, allocations: 284.5 kB / 0.5302 GB, free: 28.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.34, allocations: 4.062 kB / 0.5302 GB, free: 28.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.3402, allocations: 143.5 kB / 0.5303 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.3406, allocations: 31.75 kB / 0.5303 GB, free: 28.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.3433, allocations: 2.056 MB / 0.5323 GB, free: 26.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.3435, allocations: 0.7884 MB / 0.5331 GB, free: 26.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.3437, allocations: 114.2 kB / 0.5332 GB, free: 26.07 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3438, allocations: 0 / 0.5332 GB, free: 26.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.54/2.884, allocations: 4.657 MB / 0.5378 GB, free: 25.57 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches