Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.4 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.1946/0.1946, allocations: 46.1 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 72.61 kB / 417.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 62.44 MB / 479.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003404/0.1067, allocations: 2.537 MB / 482.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.108, allocations: 0.8218 MB / 483 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.1081, allocations: 4 kB / 483 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.1084, allocations: 47.62 kB / 483 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.1087, allocations: 95.44 kB / 483.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.109, allocations: 87.91 kB / 483.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.1093, allocations: 346.7 kB / 483.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1095, allocations: 104.9 kB / 483.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002391/0.1097, allocations: 139.5 kB / 483.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.1099, allocations: 163.3 kB / 483.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.694e-05/0.11, allocations: 32 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.083e-05/0.11, allocations: 32 kB / 484 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.989e-05/0.1101, allocations: 63.75 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.1102, allocations: 159.1 kB / 484.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.1105, allocations: 374.7 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1105, allocations: 0 / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1105, allocations: 0 / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.1106, allocations: 0 / 484.6 MB, free: 492 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001042/0.1116, allocations: 0.6312 MB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1116, allocations: 8.031 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.961e-05/0.1117, allocations: 58.73 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.1118, allocations: 40.55 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.1121, allocations: 266.6 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.1121, allocations: 16.94 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.1122, allocations: 24.38 kB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.1126, allocations: 249 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1127, allocations: 0 / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.1127, allocations: 12 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1127, allocations: 11.94 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.1132, allocations: 234.1 kB / 486.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.1144, allocations: 0.8869 MB / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004874/0.1149, allocations: 305.1 kB / 487.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.1152, allocations: 148.8 kB / 487.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.888e-05/0.1152, allocations: 3.984 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.1153, allocations: 38.56 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.1153, allocations: 0 / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004406/0.1197, allocations: 1.262 MB / 488.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.1197, allocations: 59.39 kB / 488.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001958/0.1199, allocations: 225 kB / 489 MB, free: 11.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.12, allocations: 33.7 kB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/0.12, allocations: 169.1 kB / 489.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.1201, allocations: 106.5 kB / 489.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.928e-05/0.1202, allocations: 57.61 kB / 489.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.933e-05/0.1203, allocations: 334.8 kB / 489.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.1205, allocations: 99.8 kB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.1208, allocations: 125.8 kB / 489.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.1212, allocations: 236.1 kB / 490.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.1212, allocations: 0 / 490.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001726/0.1229, allocations: 0.545 MB / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1229, allocations: 4 kB / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.123, allocations: 0 / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/0.1246, allocations: 311.1 kB / 491 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.1248, allocations: 35.91 kB / 491 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00662/0.1314, allocations: 6.843 MB / 497.9 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1316, allocations: 23.86 kB / 497.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.1317, allocations: 12.25 kB / 497.9 MB, free: 2.203 MB / 366.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.1318, allocations: 148.8 kB / 498.1 MB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.1319, allocations: 35.61 kB / 498.1 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/0.1336, allocations: 0.5463 MB / 498.6 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1336, allocations: 7.938 kB / 498.7 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1336, allocations: 3.938 kB / 498.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1336, allocations: 3.984 kB / 498.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.134, allocations: 353.3 kB / 499 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.134, allocations: 0 / 499 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1341, allocations: 19.92 kB / 499 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.1356, allocations: 323.1 kB / 499.3 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.1357, allocations: 4 kB / 499.3 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006721/0.1424, allocations: 6.904 MB / 0.4944 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1424, allocations: 4.375 kB / 0.4944 GB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.144, allocations: 0.6205 MB / 0.495 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.1441, allocations: 112.6 kB / 0.4951 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.1441, allocations: 15.94 kB / 0.4951 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.1443, allocations: 11.98 kB / 0.4951 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.741e-05/0.1444, allocations: 31.95 kB / 0.4952 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.1445, allocations: 4 kB / 0.4952 GB, free: 8.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1446, allocations: 174 kB / 0.4953 GB, free: 8.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1446, allocations: 0 / 0.4953 GB, free: 8.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004679/0.1451, allocations: 123.8 kB / 0.4954 GB, free: 8.086 MB / 382.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001826/0.1469, allocations: 1.152 MB / 0.4966 GB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009397/0.1479, allocations: 0.7681 MB / 0.4973 GB, free: 6.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1479, allocations: 0 / 0.4973 GB, free: 6.074 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.149, allocations: 0.7372 MB / 0.498 GB, free: 5.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.1493, allocations: 24.48 kB / 0.4981 GB, free: 5.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005507/0.1548, allocations: 3.271 MB / 0.5013 GB, free: 1.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.1551, allocations: 0.7756 MB / 0.502 GB, free: 1.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.824e-05/0.1551, allocations: 9.953 kB / 0.502 GB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.313e-05/0.1552, allocations: 87.34 kB / 0.5021 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1553, allocations: 0 / 0.5021 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.714/1.869, allocations: 10.65 MB / 0.5125 GB, free: 40.74 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/1.869, allocations: 242.7 kB / 0.5127 GB, free: 40.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.945/4.814, allocations: 0 / 0.5127 GB, free: 40.48 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches