Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, 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.001464/0.001464, 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.209/1.209, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1744/0.1744, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001558, allocations: 74.97 kB / 417.2 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09607, allocations: 62.44 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003678/0.09978, allocations: 2.731 MB / 482.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.101, allocations: 0.7792 MB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002195/0.1013, allocations: 8 kB / 483.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.1015, allocations: 59.55 kB / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.1018, allocations: 91.36 kB / 483.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.1021, allocations: 87.92 kB / 483.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.1025, allocations: 414.6 kB / 483.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.1028, allocations: 139.2 kB / 483.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.103, allocations: 155.4 kB / 484 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.1032, allocations: 175.2 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.1032, allocations: 32 kB / 484.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.893e-05/0.1033, allocations: 32 kB / 484.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.525e-05/0.1033, allocations: 75.7 kB / 484.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1035, allocations: 187 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1038, allocations: 414.5 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1038, allocations: 4 kB / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1038, allocations: 0 / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1038, allocations: 0 / 484.9 MB, free: 164 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001003/0.1049, allocations: 0.6745 MB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.1049, allocations: 12.03 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.535e-05/0.105, allocations: 66.72 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.681e-05/0.1051, allocations: 44.38 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1053, allocations: 278.6 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.1054, allocations: 25.38 kB / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.1054, allocations: 36.31 kB / 486.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006193/0.106, allocations: 366 kB / 486.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1061, allocations: 4 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.769e-05/0.1061, allocations: 12 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1061, allocations: 12 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005784/0.1067, allocations: 262.2 kB / 486.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.1086, allocations: 1.357 MB / 488.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.109, allocations: 194.6 kB / 488.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.1092, allocations: 87.45 kB / 488.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.1093, allocations: 4 kB / 488.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.1093, allocations: 38.56 kB / 488.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.1093, allocations: 0 / 488.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007316/0.11, allocations: 249.2 kB / 488.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.1101, allocations: 136.5 kB / 488.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003325/0.1105, allocations: 337.6 kB / 489.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1105, allocations: 33.7 kB / 489.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1106, allocations: 235.6 kB / 489.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.1107, allocations: 59.22 kB / 489.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.1108, allocations: 49.98 kB / 489.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1109, allocations: 354.8 kB / 489.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.1111, allocations: 72.5 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/0.1114, allocations: 177 kB / 490 MB, free: 10.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004885/0.1119, allocations: 247.1 kB / 490.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1119, allocations: 4 kB / 490.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000642/0.1126, allocations: 304.9 kB / 490.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.1126, allocations: 8 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1126, allocations: 0 / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.1127, allocations: 12.25 kB / 490.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/0.1131, allocations: 91.86 kB / 490.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.444e-05/0.1131, allocations: 7.938 kB / 490.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1134, allocations: 43.58 kB / 490.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.1134, allocations: 15.98 kB / 490.8 MB, free: 9.906 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.1136, allocations: 149.7 kB / 490.9 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.864e-05/0.1137, allocations: 35.62 kB / 490.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.69e-05/0.1138, allocations: 30.41 kB / 491 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1138, allocations: 4 kB / 491 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1138, allocations: 0 / 491 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1138, allocations: 0 / 491 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008133/0.1147, allocations: 0.5998 MB / 491.6 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.1147, allocations: 4 kB / 491.6 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002669/0.1149, allocations: 55.83 kB / 491.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.115, allocations: 4 kB / 491.6 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.115, allocations: 15.92 kB / 491.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.115, allocations: 7.938 kB / 491.7 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.115, allocations: 4 kB / 491.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.1155, allocations: 398.7 kB / 492.1 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.279e-05/0.1156, allocations: 104.7 kB / 492.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/0.1156, allocations: 11.94 kB / 492.2 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1159, allocations: 11.98 kB / 492.2 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.105e-05/0.1159, allocations: 19.97 kB / 492.2 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.1159, allocations: 8 kB / 492.2 MB, free: 8.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.1162, allocations: 239.2 kB / 492.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1162, allocations: 0 / 492.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.1166, allocations: 71.75 kB / 492.5 MB, free: 8.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007804/0.1173, allocations: 0.9324 MB / 493.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005442/0.1179, allocations: 207.9 kB / 493.6 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1179, allocations: 0 / 493.6 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.1181, allocations: 80.7 kB / 493.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004591/0.1186, allocations: 25.44 kB / 493.8 MB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.1222, allocations: 3.128 MB / 496.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.1225, allocations: 0.7714 MB / 497.7 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1227, allocations: 26.2 kB / 497.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.1228, allocations: 99.41 kB / 497.8 MB, free: 2.512 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1228, allocations: 4 kB / 497.8 MB, free: 2.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7816/0.9044, allocations: 4.653 MB / 0.4907 GB, free: 13.96 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002943/0.9048, allocations: 202.3 kB / 0.4908 GB, free: 13.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.411, allocations: 3.25 kB / 0.4909 GB, free: 13.7 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches