Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007981/0.0007981, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006587/0.000659, allocations: 81.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000302/0.0003021, allocations: 12 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.193, allocations: 47.56 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00213/0.1951, allocations: 2.272 MB / 377.5 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.1964, allocations: 1.077 MB / 378.5 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1965, allocations: 10.28 kB / 378.6 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.1968, allocations: 97.55 kB / 378.6 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.197, allocations: 96.92 kB / 378.7 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009347/0.198, allocations: 0.5574 MB / 379.3 MB, free: 42.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.1983, allocations: 266.2 kB / 379.6 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007883/0.1991, allocations: 0.5567 MB / 380.1 MB, free: 41.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1992, allocations: 102.1 kB / 380.2 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.1994, allocations: 140.3 kB / 380.4 MB, free: 41.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.1994, allocations: 13.47 kB / 380.4 MB, free: 41.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002633/0.1997, allocations: 156.9 kB / 380.5 MB, free: 41.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.143e-05/0.1997, allocations: 50.73 kB / 380.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.678e-05/0.1998, allocations: 154 kB / 380.7 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.2002, allocations: 372.6 kB / 381.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2002, allocations: 0.9688 kB / 381.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2002, allocations: 0 / 381.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2002, allocations: 0 / 381.1 MB, free: 41.02 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001273/0.2015, allocations: 0.6657 MB / 381.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2015, allocations: 8.469 kB / 381.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.89e-05/0.2016, allocations: 70.16 kB / 381.8 MB, free: 40.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007195/0.2023, allocations: 117.8 kB / 381.9 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.2025, allocations: 266.8 kB / 382.2 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.2026, allocations: 25.12 kB / 382.2 MB, free: 40.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.2026, allocations: 38.34 kB / 382.3 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/0.2031, allocations: 335.4 kB / 382.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2031, allocations: 5.297 kB / 382.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.2031, allocations: 10.56 kB / 382.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.2031, allocations: 8.031 kB / 382.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.2035, allocations: 237.9 kB / 382.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.205, allocations: 1.446 MB / 384.3 MB, free: 38.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004821/0.2055, allocations: 0.702 MB / 385 MB, free: 37.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.2057, allocations: 110 kB / 385.1 MB, free: 37.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.763e-05/0.2058, allocations: 83.48 kB / 385.2 MB, free: 37.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.228e-05/0.2058, allocations: 39.69 kB / 385.2 MB, free: 37.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.2058, allocations: 4 kB / 385.2 MB, free: 37.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001088/0.2069, allocations: 497.1 kB / 385.7 MB, free: 37.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.891e-05/0.2069, allocations: 54.81 kB / 385.8 MB, free: 37.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.207, allocations: 174.3 kB / 385.9 MB, free: 36.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.2071, allocations: 35.05 kB / 386 MB, free: 36.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.2071, allocations: 172.8 kB / 386.1 MB, free: 36.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.2072, allocations: 85.7 kB / 386.2 MB, free: 36.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.2072, allocations: 5.531 kB / 386.2 MB, free: 36.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.2072, allocations: 325.9 kB / 386.5 MB, free: 36.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.2073, allocations: 66.59 kB / 386.6 MB, free: 36.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.2075, allocations: 134.8 kB / 386.7 MB, free: 36.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.2077, allocations: 218.4 kB / 387 MB, free: 36.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2077, allocations: 5.031 kB / 387 MB, free: 36.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000473/0.2082, allocations: 325.2 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2082, allocations: 9.75 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2083, allocations: 2.875 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.2085, allocations: 80.81 kB / 387.4 MB, free: 35.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.2087, allocations: 40.98 kB / 387.4 MB, free: 35.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.2101, allocations: 1.836 MB / 389.2 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.2102, allocations: 31.81 kB / 389.3 MB, free: 33.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.2103, allocations: 8 kB / 389.3 MB, free: 33.92 MB / 298.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 (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.2104, allocations: 145.7 kB / 389.4 MB, free: 33.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.2104, allocations: 15.81 kB / 389.4 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004344/0.2108, allocations: 296.6 kB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2109, allocations: 4 kB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2109, allocations: 4 kB / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2109, allocations: 0 / 389.7 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006851/0.2116, allocations: 0.6866 MB / 390.4 MB, free: 32.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2116, allocations: 0 / 390.4 MB, free: 32.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.2117, allocations: 31.92 kB / 390.5 MB, free: 32.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.2119, allocations: 65.09 kB / 390.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.2119, allocations: 11.94 kB / 390.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.2131, allocations: 1.835 MB / 392.4 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2131, allocations: 0 / 392.4 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000476/0.2136, allocations: 437.3 kB / 392.8 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.944e-05/0.2137, allocations: 116.8 kB / 392.9 MB, free: 30.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.2137, allocations: 12 kB / 392.9 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.2138, allocations: 8.125 kB / 392.9 MB, free: 30.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.2139, allocations: 15.97 kB / 392.9 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.2139, allocations: 4 kB / 392.9 MB, free: 30 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.968e-05/0.214, allocations: 123.2 kB / 393.1 MB, free: 29.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.214, allocations: 0 / 393.1 MB, free: 29.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004293/0.2144, allocations: 95.75 kB / 393.2 MB, free: 29.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.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): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007563/0.2152, allocations: 0.9972 MB / 394.2 MB, free: 28.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004895/0.2157, allocations: 362.2 kB / 394.5 MB, free: 28.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2157, allocations: 0 / 394.5 MB, free: 28.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.2159, allocations: 242.5 kB / 394.8 MB, free: 28.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.2162, allocations: 24.7 kB / 394.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2179, allocations: 1.474 MB / 396.2 MB, free: 26.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.218, allocations: 0.7519 MB / 397 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.766e-05/0.2181, allocations: 79.34 kB / 397.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2182, allocations: 0 / 397.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.92/3.138, allocations: 4.801 MB / 401.9 MB, free: 20.9 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches